public class StandardImageIO extends Object implements ImageHelper
| Constructor and Description |
|---|
StandardImageIO() |
| Modifier and Type | Method and Description |
|---|---|
BufferedImage |
JPEG2000ToRGBImage(byte[] data,
int w,
int h,
int pX,
int pY) |
BufferedImage |
read(byte[] data) |
BufferedImage |
read(String file_name) |
Raster |
readRasterFromJPeg(byte[] data) |
void |
write(BufferedImage image,
String type,
String file_name) |
public void write(BufferedImage image, String type, String file_name) throws IOException
write in interface ImageHelperimage - type - file_name - IOExceptionpublic BufferedImage read(String file_name)
read in interface ImageHelperfile_name - (including path)public BufferedImage read(byte[] data) throws IOException
read in interface ImageHelperdata - (final byte[] data for image file - PNG, TIF, JPEG)IOExceptionpublic Raster readRasterFromJPeg(byte[] data) throws IOException
readRasterFromJPeg in interface ImageHelperdata - (binary data for image file - PNG, TIF, JPEG)IOExceptionpublic BufferedImage JPEG2000ToRGBImage(byte[] data, int w, int h, int pX, int pY) throws PdfException
JPEG2000ToRGBImage in interface ImageHelperdata - (binary data for image file - PNG, TIF, JPEG)w - image width in pixelsh - image height in pixelspX - sensible image width in pixels (ie what we should downscale to)pY - sensible image height in pixels (ie what we should downscale to)PdfExceptionCopyright © 2017. All rights reserved.