Class BitParser
java.lang.Object
org.apache.commons.imaging.formats.png.BitParser
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
private final int
private final byte[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getSample
(int pixelIndexInScanline, int sampleIndex) int
getSampleAsByte
(int pixelIndexInScanline, int sampleIndex)
-
Field Details
-
bytes
private final byte[] bytes -
bitsPerPixel
private final int bitsPerPixel -
bitDepth
private final int bitDepth
-
-
Constructor Details
-
BitParser
BitParser(byte[] bytes, int bitsPerPixel, int bitDepth)
-
-
Method Details
-
getSample
- Throws:
ImageReadException
-
getSampleAsByte
- Throws:
ImageReadException
-