Class PNGFile

  • All Implemented Interfaces:
    PNGConstants

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

      • colorModel

        private java.awt.image.ColorModel colorModel
      • iccProfile

        private java.awt.color.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 java.util.List<java.io.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 Detail

      • PNGFile

        public PNGFile​(java.io.InputStream stream,
                       java.lang.String uri)
                throws java.io.IOException,
                       ImageException
        Throws:
        java.io.IOException
        ImageException
    • Method Detail

      • 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)