Class PngChunkIccp


  • public class PngChunkIccp
    extends PngChunk
    The PNG iCCP chunk. If "present, the image samples conform to the color space represented by the embedded ICC profile as defined by the International Color Consortium".
    • Field Detail

      • LOGGER

        private static final java.util.logging.Logger LOGGER
      • profileName

        public final java.lang.String profileName
        ICC profile name.
      • compressionMethod

        public final int compressionMethod
        Compression method.
      • compressedProfile

        private final byte[] compressedProfile
        Compressed profile data.
      • uncompressedProfile

        private final byte[] uncompressedProfile
        Uncompressed profile data.
    • Constructor Detail

      • PngChunkIccp

        public PngChunkIccp​(int length,
                            int chunkType,
                            int crc,
                            byte[] bytes)
                     throws ImageReadException,
                            java.io.IOException
        Constructor.
        Parameters:
        length - chunk length
        chunkType - chunk type
        crc - CRC computed over the chunk type and chunk data (but not the length)
        bytes - chunk data bytes
        Throws:
        ImageReadException - when no profile name is present
        java.io.IOException - when an error happens while reading the profile data
    • Method Detail

      • getUncompressedProfile

        public byte[] getUncompressedProfile()
        Return a copy of the uncompressed profile data.
        Returns:
        the uncompressed profile data