Class BitParser
- java.lang.Object
-
- org.apache.commons.imaging.formats.png.BitParser
-
class BitParser extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private int
bitDepth
private int
bitsPerPixel
private byte[]
bytes
-
Constructor Summary
Constructors Constructor Description BitParser(byte[] bytes, int bitsPerPixel, int bitDepth)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getSample(int pixelIndexInScanline, int sampleIndex)
int
getSampleAsByte(int pixelIndexInScanline, int sampleIndex)
-
-
-
Method Detail
-
getSample
public int getSample(int pixelIndexInScanline, int sampleIndex) throws ImageReadException
- Throws:
ImageReadException
-
getSampleAsByte
public int getSampleAsByte(int pixelIndexInScanline, int sampleIndex) throws ImageReadException
- Throws:
ImageReadException
-
-