Class 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 Detail

      • 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 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
      • 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