Class PngChunkIccp
java.lang.Object
org.apache.commons.imaging.common.BinaryFileParser
org.apache.commons.imaging.formats.png.chunks.PngChunk
org.apache.commons.imaging.formats.png.chunks.PngChunkIccp
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Return a copy of the uncompressed profile data.Methods inherited from class org.apache.commons.imaging.formats.png.chunks.PngChunk
getBytes, getDataStream, getPropertyBits
Methods inherited from class org.apache.commons.imaging.common.BinaryFileParser
debugNumber, debugNumber, getByteOrder, setByteOrder
-
Field Details
-
LOGGER
-
profileName
ICC profile name. -
compressionMethod
public final int compressionMethodCompression method. -
compressedProfile
private final byte[] compressedProfileCompressed profile data. -
uncompressedProfile
private final byte[] uncompressedProfileUncompressed profile data.
-
-
Constructor Details
-
PngChunkIccp
public PngChunkIccp(int length, int chunkType, int crc, byte[] bytes) throws ImageReadException, IOException Constructor.- Parameters:
length
- chunk lengthchunkType
- chunk typecrc
- CRC computed over the chunk type and chunk data (but not the length)bytes
- chunk data bytes- Throws:
ImageReadException
- when no profile name is presentIOException
- when an error happens while reading the profile data
-
-
Method Details
-
getUncompressedProfile
public byte[] getUncompressedProfile()Return a copy of the uncompressed profile data.- Returns:
- the uncompressed profile data
-