public class CoverageDataPngImage extends Object implements CoverageDataImage
| Constructor and Description |
|---|
CoverageDataPngImage(ImageInfo imageInfo)
Constructor, used for writing a PNG
|
CoverageDataPngImage(TileRow tileRow)
Constructor, used for reading a PNG
|
| Modifier and Type | Method and Description |
|---|---|
void |
flushStream()
Flush the output stream and set the image bytes, close the stream
|
int |
getHeight() |
byte[] |
getImageBytes()
Get the image bytes
|
int |
getPixel(int x,
int y)
Get the pixel at the coordinate
|
PngReaderInt |
getReader()
Get the PNG reader
|
int |
getWidth() |
PngWriter |
getWriter()
Get the PNG writer
|
public CoverageDataPngImage(TileRow tileRow)
tileRow - tile rowpublic CoverageDataPngImage(ImageInfo imageInfo)
imageInfo - image infopublic byte[] getImageBytes()
public PngReaderInt getReader()
public PngWriter getWriter()
public int getWidth()
getWidth in interface CoverageDataImagepublic int getHeight()
getHeight in interface CoverageDataImagepublic void flushStream()
public int getPixel(int x,
int y)
x - x coordinatey - y coordinate