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 Details

    • CoverageDataPngImage

      public CoverageDataPngImage(TileRow tileRow)
      Constructor, used for reading a PNG
      Parameters:
      tileRow - tile row
    • CoverageDataPngImage

      public CoverageDataPngImage(ImageInfo imageInfo)
      Constructor, used for writing a PNG
      Parameters:
      imageInfo - image info
  • Method Details

    • 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:
      getWidth in interface CoverageDataImage
    • getHeight

      public int getHeight()
      Specified by:
      getHeight in interface CoverageDataImage
    • 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 coordinate
      y - y coordinate
      Returns:
      pixel value