public final class ImagingConstants extends Object
Modifier and Type | Field and Description |
---|---|
static String |
BUFFERED_IMAGE_FACTORY |
static String |
PARAM_KEY_COMPRESSION
Parameter key.
|
static String |
PARAM_KEY_EXIF
Parameter key.
|
static String |
PARAM_KEY_FILENAME
Parameter key.
|
static String |
PARAM_KEY_FORMAT
Parameter key.
|
static String |
PARAM_KEY_PIXEL_DENSITY
Parameter key.
|
static String |
PARAM_KEY_READ_THUMBNAILS
Parameter key.
|
static String |
PARAM_KEY_STRICT
Parameter key.
|
static String |
PARAM_KEY_XMP_XML
Parameter key.
|
public static final String PARAM_KEY_FILENAME
Parameter key. Used to hint the file name when reading from a byte array or InputStream. The file name hint can help disambiguate what file the image format.
Applies to read operations.
Valid values: file name as string
InputStream
,
Constant Field Valuespublic static final String PARAM_KEY_FORMAT
Parameter key. Used in write operations to indicate desired image format.
Valid values: Any format defined in ImageFormat, such as ImageFormat.IMAGE_FORMAT_PNG.
ImageFormats
,
Constant Field Valuespublic static final String PARAM_KEY_COMPRESSION
Parameter key. Used in write operations to indicate desired compression algorithm.
Currently only applies to writing TIFF image files.
Valid values: TiffConstants.TIFF_COMPRESSION_UNCOMPRESSED,
TiffConstants.TIFF_COMPRESSION_CCITT_1D,
TiffConstants.TIFF_COMPRESSION_LZW,
TiffConstants.TIFF_COMPRESSION_PACKBITS.
TiffConstants
,
Constant Field Valuespublic static final String BUFFERED_IMAGE_FACTORY
public static final String PARAM_KEY_READ_THUMBNAILS
Parameter key. Indicates whether to read embedded thumbnails.
Only applies to read EXIF metadata from JPEG/JFIF files.
Valid values: Boolean.TRUE
and Boolean.FALSE
.
TiffConstants
,
Constant Field Valuespublic static final String PARAM_KEY_STRICT
Parameter key. Indicates whether to throw exceptions when parsing invalid files, or whether to tolerate small problems.
Valid values: Boolean.TRUE
and Boolean.FALSE
. Default value:
Boolean.FALSE
.
TiffConstants
,
Constant Field Valuespublic static final String PARAM_KEY_EXIF
Parameter key.
Only used when writing images.
Valid values: TiffOutputSet to write into the image's EXIF metadata.
TiffOutputSet
,
Constant Field Valuespublic static final String PARAM_KEY_XMP_XML
Parameter key.
Only used when writing images.
Valid values: String of XMP XML.
public static final String PARAM_KEY_PIXEL_DENSITY
Parameter key. Used in write operations to indicate the desired pixel density (DPI), and/or aspect ratio.
Valid values: PixelDensity
PixelDensity
,
Constant Field ValuesCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.