/** * Draw a coverage data tile and format as PNG bytes from the double array of * "unsigned short" pixel values formatted as short[row][width] * * @param pixelValues "unsigned short" pixel values as [row][width] * @return coverage data image tile bytes */ public byte[] drawTileData(short[][] pixelValues) { CoverageDataPngImage image = drawTile(pixelValues); byte[] bytes = image.getImageBytes(); return bytes; }
/** * {@inheritDoc} */ @Override public byte[] drawTileData(GriddedTile griddedTile, Double[][] values) { CoverageDataPngImage image = drawTile(griddedTile, values); byte[] bytes = image.getImageBytes(); return bytes; }
/** * {@inheritDoc} */ @Override public byte[] drawTileData(GriddedTile griddedTile, Double[] values, int tileWidth, int tileHeight) { BufferedImage image = drawTile(griddedTile, values, tileWidth, tileHeight); byte[] bytes = getImageBytes(image); return bytes; }
/** * {@inheritDoc} */ @Override public byte[] drawTileData(GriddedTile griddedTile, Double[] values, int tileWidth, int tileHeight) { CoverageDataPngImage image = drawTile(griddedTile, values, tileWidth, tileHeight); byte[] bytes = image.getImageBytes(); return bytes; }
/** * {@inheritDoc} */ @Override public byte[] drawTileData(GriddedTile griddedTile, Double[][] values) { BufferedImage image = drawTile(griddedTile, values); byte[] bytes = getImageBytes(image); return bytes; }
/** * Draw a coverage data image tile and format as PNG bytes from the double * array of unsigned 16 bit integer pixel values formatted as * int[row][width] * * @param unsignedPixelValues unsigned 16 bit integer pixel values as [row][width] * @return coverage data image tile bytes */ public byte[] drawTileData(int[][] unsignedPixelValues) { CoverageDataPngImage image = drawTile(unsignedPixelValues); byte[] bytes = image.getImageBytes(); return bytes; }
/** * Draw a coverage data tile and format as PNG bytes from the double array * of "unsigned short" pixel values formatted as short[row][width] * * @param pixelValues * "unsigned short" pixel values as [row][width] * @return coverage data image tile bytes */ public byte[] drawTileData(short[][] pixelValues) { BufferedImage image = drawTile(pixelValues); byte[] bytes = getImageBytes(image); return bytes; }
/** * Draw a coverage data image tile and format as PNG bytes from the double * array of unsigned 16 bit integer pixel values formatted as * int[row][width] * * @param unsignedPixelValues * unsigned 16 bit integer pixel values as [row][width] * @return coverage data image tile bytes */ public byte[] drawTileData(int[][] unsignedPixelValues) { BufferedImage image = drawTile(unsignedPixelValues); byte[] bytes = getImageBytes(image); return bytes; }
/** * Draw a coverage data image tile and format as PNG bytes from the flat array * of "unsigned short" pixel values of length tileWidth * tileHeight where * each pixel is at: (y * tileWidth) + x * * @param pixelValues "unsigned short" pixel values of length tileWidth * tileHeight * @param tileWidth tile width * @param tileHeight tile height * @return coverage data image tile bytes */ public byte[] drawTileData(short[] pixelValues, int tileWidth, int tileHeight) { CoverageDataPngImage image = drawTile(pixelValues, tileWidth, tileHeight); byte[] bytes = image.getImageBytes(); return bytes; }
/** * Draw a coverage data image tile and format as PNG bytes from the flat array * of unsigned 16 bit integer pixel values of length tileWidth * tileHeight * where each pixel is at: (y * tileWidth) + x * * @param unsignedPixelValues unsigned 16 bit integer pixel values of length tileWidth * * tileHeight * @param tileWidth tile width * @param tileHeight tile height * @return coverage data image tile bytes */ public byte[] drawTileData(int[] unsignedPixelValues, int tileWidth, int tileHeight) { CoverageDataPngImage image = drawTile(unsignedPixelValues, tileWidth, tileHeight); byte[] bytes = image.getImageBytes(); return bytes; }
/** * Draw a coverage data image tile and format as PNG bytes from the flat * array of "unsigned short" pixel values of length tileWidth * tileHeight * where each pixel is at: (y * tileWidth) + x * * @param pixelValues * "unsigned short" pixel values of length tileWidth * tileHeight * @param tileWidth * tile width * @param tileHeight * tile height * @return coverage data image tile bytes */ public byte[] drawTileData(short[] pixelValues, int tileWidth, int tileHeight) { BufferedImage image = drawTile(pixelValues, tileWidth, tileHeight); byte[] bytes = getImageBytes(image); return bytes; }
/** * Draw a coverage data image tile and format as PNG bytes from the flat * array of unsigned 16 bit integer pixel values of length tileWidth * * tileHeight where each pixel is at: (y * tileWidth) + x * * @param unsignedPixelValues * unsigned 16 bit integer pixel values of length tileWidth * * tileHeight * @param tileWidth * tile width * @param tileHeight * tile height * @return coverage data image tile bytes */ public byte[] drawTileData(int[] unsignedPixelValues, int tileWidth, int tileHeight) { BufferedImage image = drawTile(unsignedPixelValues, tileWidth, tileHeight); byte[] bytes = getImageBytes(image); return bytes; }