Class CoverageDataPngImage
- java.lang.Object
-
- mil.nga.geopackage.extension.coverage.CoverageDataPngImage
-
- All Implemented Interfaces:
CoverageDataImage
public class CoverageDataPngImage extends Object implements CoverageDataImage
Coverage Data PNG image, stores the tile row image and raster- Since:
- 2.0.1
-
-
Constructor Summary
Constructors Constructor Description CoverageDataPngImage(ImageInfo imageInfo)Constructor, used for writing a PNGCoverageDataPngImage(TileRow tileRow)Constructor, used for reading a PNG
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidflushStream()Flush the output stream and set the image bytes, close the streamintgetHeight()byte[]getImageBytes()Get the image bytesintgetPixel(int x, int y)Get the pixel at the coordinatePngReaderIntgetReader()Get the PNG readerintgetWidth()PngWritergetWriter()Get the PNG writer
-
-
-
Method Detail
-
getImageBytes
public byte[] getImageBytes()
Get the image bytes- Returns:
- image bytes
-
getReader
public PngReaderInt getReader()
Get the PNG reader- Returns:
- reader
-
getWriter
public PngWriter getWriter()
Get the PNG writer- Returns:
- writer
-
getWidth
public int getWidth()
- Specified by:
getWidthin interfaceCoverageDataImage
-
getHeight
public int getHeight()
- Specified by:
getHeightin interfaceCoverageDataImage
-
flushStream
public void flushStream()
Flush the output stream and set the image bytes, close the stream
-
getPixel
public int getPixel(int x, int y)Get the pixel at the coordinate- Parameters:
x- x coordinatey- y coordinate- Returns:
- pixel value
-
-