public static final class TiffConverter.ConverterOptions
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
boolean |
appendTiff
For converting from ANY to TIFF cases
If this value set to true while converting any to tiff - new tiff directory will be created
and added to existed tiff file.
|
long |
availableMemory
Number of bytes that may be allocated during the file operations.
|
CompressionScheme |
compressionScheme
For converting from ANY to TIFF cases
Compression scheme used on the image data.
|
java.lang.String |
imageDescription
For converting from ANY to TIFF cases
A string that describes the subject of the image.
|
DecodeArea |
inTiffDecodeArea
If this field is non-null - Converter will use only area specified in
DecodeArea object to convert. |
int |
readTiffDirectory
For converting from TIFF to ANY cases
Tiff directory that should be converted
|
ResolutionUnit |
resUnit
For converting from ANY to TIFF cases
The unit of measurement for XResolution and YResolution.
|
java.lang.String |
software
For converting from ANY to TIFF cases
Software that used for creating of image.
|
boolean |
throwExceptions
If set to true, converter will throw exceptions if some errors appeared while converting.
|
float |
xResolution
For converting from ANY to TIFF cases
The number of pixels per
resUnit in the ImageWidth direction. |
float |
yResolution
For converting from ANY to TIFF cases
The number of pixels per
resUnit in the ImageHeight direction. |
| Constructor and Description |
|---|
ConverterOptions() |
| Modifier and Type | Method and Description |
|---|---|
void |
stop()
Deprecated.
As of release 0.9.8.4, replaced by
Thread.interrupt() |
public long availableMemory
-1 means memory is unlimited.
Default value is 244Mb
public boolean throwExceptions
public int readTiffDirectory
Tiff directory that should be converted
public boolean appendTiff
If this value set to true while converting any to tiff - new tiff directory will be created and added to existed tiff file.
Otherwise file will be overwritten.Default value is false
public CompressionScheme compressionScheme
Default value is COMPRESSION_NONE
This parameter is link to TIFFTAG_COMPRESSION tag
public DecodeArea inTiffDecodeArea
DecodeArea object to convert.
This field works only when convert from TIFF.
For decoding not full bitmap, but only part of it - create new DecodeArea object and specify:
x, y - left top corner of decoding area
width - width of decoding area
height - height of decoding area
public float xResolution
resUnit in the ImageWidth direction.
It is not mandatory that the image be actually displayed or printed at the size implied by this parameter. It is up to the application to use this information as it wishes.
Defualt value is 0
public float yResolution
resUnit in the ImageHeight direction.
It is not mandatory that the image be actually displayed or printed at the size implied by this parameter. It is up to the application to use this information as it wishes.
Defualt value is 0
public ResolutionUnit resUnit
To be used with xResolution and yResolution.
The specification defines these values:
Default value is ResolutionUnit.NONE
public java.lang.String imageDescription
This parameter is link to TIFFTAG_IMAGEDESCRIPTION tag
public java.lang.String software
This parameter is link to TIFFTAG_SOFTWARE tag