Class PixelParserBitFields
- java.lang.Object
-
- org.apache.commons.imaging.formats.bmp.AbstractPixelParser
-
- org.apache.commons.imaging.formats.bmp.AbstractPixelParserSimple
-
- org.apache.commons.imaging.formats.bmp.PixelParserBitFields
-
final class PixelParserBitFields extends AbstractPixelParserSimple
-
-
Field Summary
Fields Modifier and Type Field Description private intalphaMaskprivate intalphaShiftprivate intblueMaskprivate intblueShiftprivate intbyteCountprivate intgreenMaskprivate intgreenShiftprivate intredMaskprivate intredShift-
Fields inherited from class org.apache.commons.imaging.formats.bmp.AbstractPixelParser
bhi, colorTable, imageData, is
-
-
Constructor Summary
Constructors Constructor Description PixelParserBitFields(BmpHeaderInfo bhi, byte[] colorTable, byte[] imageData)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private intgetMaskShift(int mask)intgetNextRgb()voidnewline()-
Methods inherited from class org.apache.commons.imaging.formats.bmp.AbstractPixelParserSimple
processImage
-
Methods inherited from class org.apache.commons.imaging.formats.bmp.AbstractPixelParser
getColorTableRgb
-
-
-
-
Field Detail
-
redShift
private final int redShift
-
greenShift
private final int greenShift
-
blueShift
private final int blueShift
-
alphaShift
private final int alphaShift
-
redMask
private final int redMask
-
greenMask
private final int greenMask
-
blueMask
private final int blueMask
-
alphaMask
private final int alphaMask
-
byteCount
private int byteCount
-
-
Constructor Detail
-
PixelParserBitFields
PixelParserBitFields(BmpHeaderInfo bhi, byte[] colorTable, byte[] imageData)
-
-
Method Detail
-
getMaskShift
private int getMaskShift(int mask)
-
getNextRgb
public int getNextRgb() throws ImagingException, java.io.IOException- Specified by:
getNextRgbin classAbstractPixelParserSimple- Throws:
ImagingExceptionjava.io.IOException
-
newline
public void newline() throws ImagingException, java.io.IOException- Specified by:
newlinein classAbstractPixelParserSimple- Throws:
ImagingExceptionjava.io.IOException
-
-