Class CoverageDataPngImage
java.lang.Object
mil.nga.geopackage.extension.coverage.CoverageDataPngImage
- All Implemented Interfaces:
CoverageDataImage
Coverage Data PNG image, stores the tile row image and raster
- Since:
- 2.0.1
-
Constructor Summary
ConstructorDescriptionCoverageDataPngImage
(ImageInfo imageInfo) Constructor, used for writing a PNGCoverageDataPngImage
(TileRow tileRow) Constructor, used for reading a PNG -
Method Summary
-
Constructor Details
-
CoverageDataPngImage
Constructor, used for reading a PNG- Parameters:
tileRow
- tile row
-
CoverageDataPngImage
Constructor, used for writing a PNG- Parameters:
imageInfo
- image info
-
-
Method Details
-
getImageBytes
public byte[] getImageBytes()Get the image bytes- Returns:
- image bytes
-
getReader
Get the PNG reader- Returns:
- reader
-
getWriter
Get the PNG writer- Returns:
- writer
-
getWidth
public int getWidth()- Specified by:
getWidth
in interfaceCoverageDataImage
-
getHeight
public int getHeight()- Specified by:
getHeight
in 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
-