Tabnine Logo
PNGImage.decodePass
Code IndexAdd Tabnine to your IDE (free)

How to use
decodePass
method
in
org.apache.batik.ext.awt.image.codec.png.PNGImage

Best Java code snippets using org.apache.batik.ext.awt.image.codec.png.PNGImage.decodePass (Showing top 4 results out of 315)

origin: liuyueyi/quick-media

private void decodeImage(boolean useInterlacing) {
  if (!useInterlacing) {
    decodePass(theTile, 0, 0, 1, 1, width, height);
  } else {
    decodePass(theTile, 0, 0, 8, 8, (width + 7)/8, (height + 7)/8);
    decodePass(theTile, 4, 0, 8, 8, (width + 3)/8, (height + 7)/8);
    decodePass(theTile, 0, 4, 4, 8, (width + 3)/4, (height + 3)/8);
    decodePass(theTile, 2, 0, 4, 4, (width + 1)/4, (height + 3)/4);
    decodePass(theTile, 0, 2, 2, 4, (width + 1)/2, (height + 1)/4);
    decodePass(theTile, 1, 0, 2, 2, width/2, (height + 1)/2);
    decodePass(theTile, 0, 1, 1, 2, width, height/2);
  }
}
origin: apache/batik

private void decodeImage(boolean useInterlacing) {
  if (!useInterlacing) {
    decodePass(theTile, 0, 0, 1, 1, width, height);
  } else {
    decodePass(theTile, 0, 0, 8, 8, (width + 7)/8, (height + 7)/8);
    decodePass(theTile, 4, 0, 8, 8, (width + 3)/8, (height + 7)/8);
    decodePass(theTile, 0, 4, 4, 8, (width + 3)/4, (height + 3)/8);
    decodePass(theTile, 2, 0, 4, 4, (width + 1)/4, (height + 3)/4);
    decodePass(theTile, 0, 2, 2, 4, (width + 1)/2, (height + 1)/4);
    decodePass(theTile, 1, 0, 2, 2, width/2, (height + 1)/2);
    decodePass(theTile, 0, 1, 1, 2, width, height/2);
  }
}
origin: org.apache.xmlgraphics/batik-codec

private void decodeImage(boolean useInterlacing) {
  if (!useInterlacing) {
    decodePass(theTile, 0, 0, 1, 1, width, height);
  } else {
    decodePass(theTile, 0, 0, 8, 8, (width + 7)/8, (height + 7)/8);
    decodePass(theTile, 4, 0, 8, 8, (width + 3)/8, (height + 7)/8);
    decodePass(theTile, 0, 4, 4, 8, (width + 3)/4, (height + 3)/8);
    decodePass(theTile, 2, 0, 4, 4, (width + 1)/4, (height + 3)/4);
    decodePass(theTile, 0, 2, 2, 4, (width + 1)/2, (height + 1)/4);
    decodePass(theTile, 1, 0, 2, 2, width/2, (height + 1)/2);
    decodePass(theTile, 0, 1, 1, 2, width, height/2);
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

private void decodeImage(boolean useInterlacing) {
  if (!useInterlacing) {
    decodePass(theTile, 0, 0, 1, 1, width, height);
  } else {
    decodePass(theTile, 0, 0, 8, 8, (width + 7)/8, (height + 7)/8);
    decodePass(theTile, 4, 0, 8, 8, (width + 3)/8, (height + 7)/8);
    decodePass(theTile, 0, 4, 4, 8, (width + 3)/4, (height + 3)/8);
    decodePass(theTile, 2, 0, 4, 4, (width + 1)/4, (height + 3)/4);
    decodePass(theTile, 0, 2, 2, 4, (width + 1)/2, (height + 1)/4);
    decodePass(theTile, 1, 0, 2, 2, width/2, (height + 1)/2);
    decodePass(theTile, 0, 1, 1, 2, width, height/2);
  }
}
org.apache.batik.ext.awt.image.codec.pngPNGImagedecodePass

Javadoc

Reads in an image of a given size and returns it as a WritableRaster.

Popular methods of PNGImage

  • <init>
  • createComponentColorModel
    A convenience method to create an instance ofComponentColorModel suitable for use with the given Sam
  • createRaster
  • decodeAverageFilter
  • decodeImage
  • decodePaethFilter
  • decodeSubFilter
  • decodeUpFilter
  • getChunkType
  • initGammaLut
  • initGrayLut
  • parse_IEND_chunk
  • initGrayLut,
  • parse_IEND_chunk,
  • parse_IHDR_chunk,
  • parse_PLTE_chunk,
  • parse_bKGD_chunk,
  • parse_cHRM_chunk,
  • parse_gAMA_chunk,
  • parse_hIST_chunk,
  • parse_iCCP_chunk

Popular in Java

  • Creating JSON documents from java classes using gson
  • setContentView (Activity)
  • compareTo (BigDecimal)
  • getSharedPreferences (Context)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now