Class PngChunkPlte
- java.lang.Object
-
- org.apache.commons.imaging.common.BinaryFileParser
-
- org.apache.commons.imaging.formats.png.chunks.PngChunk
-
- org.apache.commons.imaging.formats.png.chunks.PngChunkPlte
-
public final class PngChunkPlte extends PngChunk
-
-
Field Summary
Fields Modifier and Type Field Description private int[]rgb
-
Constructor Summary
Constructors Constructor Description PngChunkPlte(int length, int chunkType, int crc, byte[] bytes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcorrect(GammaCorrection gammaCorrection)int[]getRgb()intgetRgb(int index)-
Methods inherited from class org.apache.commons.imaging.formats.png.chunks.PngChunk
getBytes, getChunkType, getCrc, getDataStream, getLength, getPropertyBits, isAncillary, isPrivate, isReserved, isSafeToCopy
-
Methods inherited from class org.apache.commons.imaging.common.BinaryFileParser
debugNumber, debugNumber, getByteOrder, setByteOrder
-
-
-
-
Constructor Detail
-
PngChunkPlte
public PngChunkPlte(int length, int chunkType, int crc, byte[] bytes) throws ImagingException, java.io.IOException- Throws:
ImagingExceptionjava.io.IOException
-
-
Method Detail
-
correct
public void correct(GammaCorrection gammaCorrection)
-
getRgb
public int[] getRgb()
-
getRgb
public int getRgb(int index) throws ImagingException- Throws:
ImagingException
-
-