Class BitParser
- java.lang.Object
-
- org.apache.commons.imaging.formats.png.BitParser
-
final class BitParser extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private intbitDepthprivate intbitsPerPixelprivate 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 intgetSample(int pixelIndexInScanline, int sampleIndex)intgetSampleAsByte(int pixelIndexInScanline, int sampleIndex)
-
-
-
Method Detail
-
getSample
public int getSample(int pixelIndexInScanline, int sampleIndex) throws ImagingException- Throws:
ImagingException
-
getSampleAsByte
public int getSampleAsByte(int pixelIndexInScanline, int sampleIndex) throws ImagingException- Throws:
ImagingException
-
-