public abstract class AbstractScanlineProvider extends Object implements ScanlineProvider
Modifier and Type | Field and Description |
---|---|
protected byte |
bitDepth |
protected int |
currentRow |
protected it.geosolutions.imageio.plugins.png.ScanlineCursor |
cursor |
protected int |
height |
protected IndexColorModel |
palette |
protected int |
scanlineLength |
protected int |
width |
Modifier | Constructor and Description |
---|---|
protected |
AbstractScanlineProvider(Raster raster,
byte bitDepth,
int scanlineLength,
IndexColorModel palette) |
|
AbstractScanlineProvider(Raster raster,
int bitDepth,
int scanlineLength) |
|
AbstractScanlineProvider(Raster raster,
int bitDepth,
int scanlineLength,
IndexColorModel palette) |
Modifier and Type | Method and Description |
---|---|
void |
endReadFromPngRaw() |
byte |
getBitDepth()
The bit depth of this image, 1, 2, 4, 8 or 16
|
int |
getHeight()
Image height
|
IndexColorModel |
getPalette()
Returns the palette for this image, or null if the image does not have one
|
int |
getScanlineLength()
The number of byte[] elements in the scaline
|
int |
getWidth()
Image width
|
void |
readFromPngRaw(byte[] raw,
int len,
int offset,
int step) |
void |
writeToPngRaw(byte[] raw) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
next
protected final int width
protected final int height
protected final int scanlineLength
protected final it.geosolutions.imageio.plugins.png.ScanlineCursor cursor
protected final IndexColorModel palette
protected final byte bitDepth
protected int currentRow
public AbstractScanlineProvider(Raster raster, int bitDepth, int scanlineLength)
public AbstractScanlineProvider(Raster raster, int bitDepth, int scanlineLength, IndexColorModel palette)
protected AbstractScanlineProvider(Raster raster, byte bitDepth, int scanlineLength, IndexColorModel palette)
public final int getWidth()
ScanlineProvider
getWidth
in interface ScanlineProvider
public final int getHeight()
ScanlineProvider
getHeight
in interface ScanlineProvider
public final byte getBitDepth()
ScanlineProvider
getBitDepth
in interface ScanlineProvider
public final IndexColorModel getPalette()
ScanlineProvider
getPalette
in interface ScanlineProvider
public final int getScanlineLength()
ScanlineProvider
getScanlineLength
in interface ScanlineProvider
public void readFromPngRaw(byte[] raw, int len, int offset, int step)
readFromPngRaw
in interface ar.com.hjg.pngj.IImageLine
public void endReadFromPngRaw()
endReadFromPngRaw
in interface ar.com.hjg.pngj.IImageLine
public void writeToPngRaw(byte[] raw)
writeToPngRaw
in interface ar.com.hjg.pngj.IImageLine
Copyright © 2006–2014 GeoSolutions. All rights reserved.