public static final class TiffBitmapFactory.Options
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
long |
inAvailableMemory
Number of bytes that may be allocated during the Tiff file operations.
|
DecodeArea |
inDecodeArea
If this field is non-null - Decoder will decode and return only area specified in
DecodeArea object
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 |
int |
inDirectoryNumber
Set directory to extract from image.
|
boolean |
inJustDecodeBounds
If set to true, the decoder will return null (no bitmap), but
the out... fields will still be set, allowing the caller to query
the bitmap without having to allocate the memory for its pixels.
|
TiffBitmapFactory.ImageConfig |
inPreferredConfig
If this is non-null, the decoder will try to decode into this
internal configuration.
|
int |
inSampleSize
If set to a value > 1, requests the decoder to subsample the original
image, returning a smaller image to save memory.
|
boolean |
inSwapRedBlueColors
If set to true, the decoder will swap red and blue colors.
|
boolean |
inThrowException
If set to true, decoder will throw exceptions if some errors appeared while decoding.
|
boolean |
inUseOrientationTag
If set to true decoder will rotate and flip image according to TIFFTAG_ORIENTATION.
|
java.lang.String |
outAuthor
Author of file.
|
int |
outBitsPerSample
Number of bits per component.
|
CompressionScheme |
outCompressionScheme
This parameter returns compression scheme of decoded image
For storing compression mode uses
CompressionScheme enum
This parameter is link to TIFFTAG_COMPRESSION tag |
java.lang.String |
outCopyright
Copyright of file
This parameter is link to TIFFTAG_COPYRIGHT tag
|
int |
outCurDirectoryNumber
The number of current directory.
|
java.lang.String |
outDatetime
Date and time of image creation.
|
int |
outDirectoryCount
The count of directory in image file.
|
FillOrder |
outFillOrder
The logical order of bits within a byte.
|
int |
outHeight
The resulting height of the bitmap.
|
java.lang.String |
outHostComputer
The computer and/or operating system in use at the time of image creation.
|
java.lang.String |
outImageDescription
A string that describes the subject of the image.
|
Orientation |
outImageOrientation
This parameter returns orientation of decoded image
For storing orientation uses
ImageOrientation enum
If image wasn't decoded successful this parameter will be equal to Orientation.UNAVAILABLE
This parameter is link to TIFFTAG_ORIENTATION tag |
int |
outNumberOfStrips
Number of strips in the image.
|
Photometric |
outPhotometric
The color space of the image data.
|
PlanarConfig |
outPlanarConfig
How the components of each pixel are stored.
|
ResolutionUnit |
outResolutionUnit
The unit of measurement for XResolution and YResolution.
|
int |
outRowPerStrip
The number of rows per strip.
|
int |
outSamplePerPixel
The number of components per pixel.
|
java.lang.String |
outSoftware
Name and version number of the software package(s) used to create the image.
|
int |
outStripSize
Size for a strip of data in bytes.
|
int |
outTileHeight
The tile height in pixels.
|
int |
outTileWidth
The tile width in pixels.
|
int |
outWidth
The resulting width of the bitmap.
|
float |
outXResolution
The number of pixels per
outResolutionUnit in the ImageWidth direction. |
float |
outYResolution
The number of pixels per
outResolutionUnit in the ImageHeight direction. |
| Constructor and Description |
|---|
Options()
Create a default Options object, which if left unchanged will give
the same result from the decoder as if null were passed.
|
| Modifier and Type | Method and Description |
|---|---|
void |
stop()
Deprecated.
As of release 0.9.8.4, replaced by
Thread.interrupt() |
public boolean inUseOrientationTag
The specification considers this a baseline tag, but does add that support for orientations other than 1 is not a Baseline TIFF requirement.
So for almost all cases this variable may be false.Default value is false
public boolean inThrowException
public boolean inSwapRedBlueColors
Note: If you use this option then your image has wrong encoding
Default value is false
public boolean inJustDecodeBounds
public int inSampleSize
public int inDirectoryNumber
outDirectoryCountpublic long inAvailableMemory
-1 means memory is unlimited.
Default value is 244Mb
public TiffBitmapFactory.ImageConfig inPreferredConfig
TiffBitmapFactory.ImageConfig.ARGB_8888 configuration.
Numeration starts with 0
Image are loaded with the TiffBitmapFactory.ImageConfig.ARGB_8888 config by
default.
In current version supported are TiffBitmapFactory.ImageConfig.ARGB_8888, TiffBitmapFactory.ImageConfig.ALPHA_8 and TiffBitmapFactory.ImageConfig.RGB_565
public DecodeArea inDecodeArea
DecodeArea object
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 int outWidth
inJustDecodeBounds is
set to false, this will be width of the output bitmap after any
scaling is applied. If true, it will be the width of the input image
without any accounting for scaling.
outWidth will be set to -1 if there is an error trying to decode.
public int outHeight
inJustDecodeBounds is
set to false, this will be height of the output bitmap after any
scaling is applied. If true, it will be the height of the input image
without any accounting for scaling.
outHeight will be set to -1 if there is an error trying to decode.
public int outCurDirectoryNumber
curDirectoryNumber will be set to -1 if there is an error trying to decode.
public int outDirectoryCount
outDirectoryCount will be set to -1 if there is an error trying to decode.
public Orientation outImageOrientation
For storing orientation uses ImageOrientation enum
If image wasn't decoded successful this parameter will be equal to Orientation.UNAVAILABLE
This parameter is link to TIFFTAG_ORIENTATION tag
public CompressionScheme outCompressionScheme
For storing compression mode uses CompressionScheme enum
This parameter is link to TIFFTAG_COMPRESSION tag
public PlanarConfig outPlanarConfig
The specification defines these values:
This parameter is link to TIFFTAG_PLANARCONFIG tag
public int outSamplePerPixel
SamplesPerPixel is usually 1 for bilevel, grayscale, and palette-color images. SamplesPerPixel is usually 3 for RGB images. If this value is higher, ExtraSamples should give an indication of the meaning of the additional channels.
public int outBitsPerSample
public float outXResolution
outResolutionUnit in the ImageWidth direction.public float outYResolution
outResolutionUnit in the ImageHeight direction.public ResolutionUnit outResolutionUnit
The specification defines these values:
This parameter is link to TIFFTAG_RESOLUTIONUNIT tag
public int outTileWidth
public int outTileHeight
public int outRowPerStrip
RowsPerStrip and ImageLength together tell us the number of strips in the entire image.
public int outStripSize
public int outNumberOfStrips
public Photometric outPhotometric
This parameter is link to TIFFTAG_PHOTOMETRIC tag
public FillOrder outFillOrder
The specification defines these values:
This parameter is link to TIFFTAG_PLANARCONFIG tag
public java.lang.String outAuthor
This parameter is link to TIFFTAG_ARTIST tag
public java.lang.String outCopyright
This parameter is link to TIFFTAG_COPYRIGHT tag
public java.lang.String outImageDescription
This parameter is link to TIFFTAG_IMAGEDESCRIPTION tag
public java.lang.String outSoftware
This parameter is link to TIFFTAG_SOFTWARE tag
public java.lang.String outDatetime
This parameter is link to TIFFTAG_DATETIME tag
public java.lang.String outHostComputer
This parameter is link to TIFFTAG_HOSTCOMPUTER tag