java.lang.Object
org.apache.xmlgraphics.image.loader.impl.PNGFile
All Implemented Interfaces:
PNGConstants

class PNGFile extends Object implements PNGConstants
Provides methods useful for processing PNG files.
  • Field Details

    • colorModel

      private ColorModel colorModel
    • iccProfile

      private ICC_Profile iccProfile
    • sRGBRenderingIntent

      private int sRGBRenderingIntent
    • bitDepth

      private int bitDepth
    • colorType

      private int colorType
    • isTransparent

      private boolean isTransparent
    • grayTransparentAlpha

      private int grayTransparentAlpha
    • redTransparentAlpha

      private int redTransparentAlpha
    • greenTransparentAlpha

      private int greenTransparentAlpha
    • blueTransparentAlpha

      private int blueTransparentAlpha
    • streamVec

      private List<InputStream> streamVec
    • paletteEntries

      private int paletteEntries
    • redPalette

      private byte[] redPalette
    • greenPalette

      private byte[] greenPalette
    • bluePalette

      private byte[] bluePalette
    • alphaPalette

      private byte[] alphaPalette
    • hasPalette

      private boolean hasPalette
    • hasAlphaPalette

      private boolean hasAlphaPalette
  • Constructor Details

  • Method Details

    • getImageRawPNG

      public ImageRawPNG getImageRawPNG(ImageInfo info) throws ImageException
      Throws:
      ImageException
    • parse_IHDR_chunk

      private void parse_IHDR_chunk(PNGChunk chunk)
    • parse_PLTE_chunk

      private void parse_PLTE_chunk(PNGChunk chunk)
    • parse_tRNS_chunk

      private void parse_tRNS_chunk(PNGChunk chunk)
    • parse_iCCP_chunk

      private void parse_iCCP_chunk(PNGChunk chunk)
    • parse_sRGB_chunk

      private void parse_sRGB_chunk(PNGChunk chunk)