Class AbstractScanExpediter
java.lang.Object
org.apache.commons.imaging.formats.png.AbstractScanExpediter
- Direct Known Subclasses:
ScanExpediterInterlaced, ScanExpediterSimple
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final AbstractTransparencyFilter(package private) final BufferedImage(package private) final int(package private) final int(package private) final int(package private) final GammaCorrection(package private) final int(package private) final InputStream(package private) final PngChunkPlte(package private) final PngColorType(package private) final int -
Constructor Summary
ConstructorsConstructorDescriptionAbstractScanExpediter(int width, int height, InputStream is, BufferedImage bi, PngColorType pngColorType, int bitDepth, int bitsPerPixel, PngChunkPlte pngChunkPLTE, GammaCorrection gammaCorrection, AbstractTransparencyFilter abstractTransparencyFilter) -
Method Summary
Modifier and TypeMethodDescriptionabstract voiddrive()(package private) final intgetBitsToBytesRoundingUp(int bits) (package private) byte[]getNextScanline(InputStream is, int length, byte[] prev, int bytesPerPixel) (package private) final intgetPixelArgb(int alpha, int red, int green, int blue) (package private) final intgetPixelRgb(int red, int green, int blue) (package private) int(package private) ScanlineFiltergetScanlineFilter(FilterType filterType, int bytesPerPixel) (package private) byte[]unfilterScanline(FilterType filterType, byte[] src, byte[] prev, int bytesPerPixel)
-
Field Details
-
width
final int width -
height
final int height -
is
-
bi
-
pngColorType
-
bitDepth
final int bitDepth -
bytesPerPixel
final int bytesPerPixel -
bitsPerPixel
final int bitsPerPixel -
pngChunkPlte
-
gammaCorrection
-
abstractTransparencyFilter
-
-
Constructor Details
-
AbstractScanExpediter
AbstractScanExpediter(int width, int height, InputStream is, BufferedImage bi, PngColorType pngColorType, int bitDepth, int bitsPerPixel, PngChunkPlte pngChunkPLTE, GammaCorrection gammaCorrection, AbstractTransparencyFilter abstractTransparencyFilter)
-
-
Method Details
-
drive
- Throws:
ImagingExceptionIOException
-
getBitsToBytesRoundingUp
final int getBitsToBytesRoundingUp(int bits) -
getNextScanline
byte[] getNextScanline(InputStream is, int length, byte[] prev, int bytesPerPixel) throws ImagingException, IOException - Throws:
ImagingExceptionIOException
-
getPixelArgb
final int getPixelArgb(int alpha, int red, int green, int blue) -
getPixelRgb
final int getPixelRgb(int red, int green, int blue) -
getRgb
- Throws:
ImagingExceptionIOException
-
getScanlineFilter
-
unfilterScanline
byte[] unfilterScanline(FilterType filterType, byte[] src, byte[] prev, int bytesPerPixel) throws ImagingException, IOException - Throws:
ImagingExceptionIOException
-