it.geosolutions.imageio.plugins.png
Interface ScanlineProvider

All Superinterfaces:
ar.com.hjg.pngj.IImageLine
All Known Implementing Classes:
AbstractScanlineProvider, RasterByteABGRProvider, RasterByteRepackSingleBandProvider, RasterByteSingleBandProvider, RasterIntABGRProvider, RasterShortABGRProvider, RasterShortGrayAlphaProvider, RasterShortSingleBandProvider

public interface ScanlineProvider
extends ar.com.hjg.pngj.IImageLine

The bridge between images and PNG scanlines

Author:
Andrea Aime - GeoSolutions

Method Summary
 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 next(byte[] scaline, int offset, int length)
          The next scanline, or throws an exception if we got past the end of the image
 
Methods inherited from interface ar.com.hjg.pngj.IImageLine
endReadFromPngRaw, readFromPngRaw, writeToPngRaw
 

Method Detail

getWidth

int getWidth()
Image width

Returns:

getHeight

int getHeight()
Image height

Returns:

getBitDepth

byte getBitDepth()
The bit depth of this image, 1, 2, 4, 8 or 16

Returns:

getScanlineLength

int getScanlineLength()
The number of byte[] elements in the scaline

Returns:

next

void next(byte[] scaline,
          int offset,
          int length)
The next scanline, or throws an exception if we got past the end of the image


getPalette

IndexColorModel getPalette()
Returns the palette for this image, or null if the image does not have one

Returns:


Copyright © 2006–2014 GeoSolutions. All rights reserved.