public class ImageHandler extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ImageHandler.BasicImageInformation |
| Modifier and Type | Field and Description |
|---|---|
static int |
NEGATIVE_ZERO_FLOAT_BITS
Negative zero bits.
|
static int |
POSITIVE_ZERO_FLOAT_BITS
Positive zero bits.
|
static int |
SGN_MASK_FLOAT
Offset to order signed double numbers lexicographically.
|
| Constructor and Description |
|---|
ImageHandler() |
| Modifier and Type | Method and Description |
|---|---|
static ImageInputStream |
createImageIS(InputStream is) |
static InputStream |
createIS(byte[] input_image_bytes) |
static ImageReader |
createReader(ImageInputStream imageis) |
static ImageWriter |
createWriter(String outFormatName) |
static String |
diplayImageMetadata(ImageReader reader,
ImageHandler.BasicImageInformation ii) |
static String |
saveImage(File outputImageFile,
String outFormatName,
byte[] input_image_bytes,
float saveCompression,
Integer dpi) |
static String |
setupSaveImageWriteParam(ImageWriteParam iwp,
float saveCompression) |
static void |
writeImageFile(File imageFile,
ImageReader reader,
ImageWriter writer,
ImageWriteParam iwp,
Integer dpi,
String outFormatName) |
public static final int POSITIVE_ZERO_FLOAT_BITS
public static final int NEGATIVE_ZERO_FLOAT_BITS
public static final int SGN_MASK_FLOAT
public static InputStream createIS(byte[] input_image_bytes)
public static ImageInputStream createImageIS(InputStream is) throws IOException
IOExceptionpublic static ImageReader createReader(ImageInputStream imageis)
public static String saveImage(File outputImageFile, String outFormatName, byte[] input_image_bytes, float saveCompression, Integer dpi) throws IOException, FileNotFoundException
IOExceptionFileNotFoundExceptionpublic static ImageWriter createWriter(String outFormatName)
public static String diplayImageMetadata(ImageReader reader, ImageHandler.BasicImageInformation ii) throws IOException, TransformerException
IOExceptionTransformerExceptionpublic static String setupSaveImageWriteParam(ImageWriteParam iwp, float saveCompression)
public static void writeImageFile(File imageFile, ImageReader reader, ImageWriter writer, ImageWriteParam iwp, Integer dpi, String outFormatName) throws FileNotFoundException, IOException
FileNotFoundExceptionIOExceptionCopyright © 2017 MFJ Associates. All rights reserved.