public class ToTiffJaiOptions extends ToImageOptions
Modifier and Type | Field and Description |
---|---|
static int |
COMPRESSION_DEFLATE
DEFLATE lossless compression (also known as "Zip-in-TIFF").
|
static int |
COMPRESSION_GROUP3_1D
Modified Huffman Compression (CCITT Run Length Encoding (RLE)).
|
static int |
COMPRESSION_GROUP3_2D
CCITT T.4 bilevel compression (Group 3 facsimile compression).
|
static int |
COMPRESSION_GROUP4
CCITT T.6 bilevel compression (Group 4 facsimile compression).
|
static int |
COMPRESSION_JPEG_TTN2
JPEG-in-TIFF compression.
|
static int |
COMPRESSION_LZW
LZW compression.
|
static int |
COMPRESSION_NONE
No compression.
|
static int |
COMPRESSION_PACKBITS
Byte-oriented run-length encoding "PackBits" compression.
|
static int |
DEFLATER_BEST_COMPRESSION
The constant DEFLATER_BEST_COMPRESSION.
|
static int |
DEFLATER_BEST_SPEED
The constant DEFLATER_BEST_SPEED.
|
static int |
DEFLATER_DEFAULT_COMPRESSION
The constant DEFLATER_DEFAULT_COMPRESSION.
|
static int |
DEFLATER_DEFAULT_STRATEGY
The constant DEFLATER_DEFAULT_STRATEGY.
|
static int |
DEFLATER_DEFLATED
The constant DEFLATER_DEFLATED.
|
static int |
DEFLATER_FILTERED
The constant DEFLATER_FILTERED.
|
static int |
DEFLATER_HUFFMAN_ONLY
The constant DEFLATER_HUFFMAN_ONLY.
|
static int |
DEFLATER_NO_COMPRESSION
The constant DEFLATER_NO_COMPRESSION.
|
Constructor and Description |
---|
ToTiffJaiOptions()
Instantiates a new To tiff options.
|
ToTiffJaiOptions(boolean multipage)
Instantiates a new To tiff options.
|
Modifier and Type | Method and Description |
---|---|
int |
getCompression()
Gets compression.
|
int |
getDeflateLevel()
Gets deflate level.
|
int |
getTileHeight()
Gets tile height.
|
int |
getTileWidth()
Gets tile width.
|
boolean |
isJPEGCompressRGBToYCbCr()
Is jpeg compress rgb to y cb cr boolean.
|
boolean |
isLittleEndian()
Is little endian boolean.
|
boolean |
isMultipage()
Is multipage boolean.
|
boolean |
isReverseFillOrder()
Is reverse fill order boolean.
|
boolean |
isT4Encode2D()
Is t 4 encode 2 d boolean.
|
boolean |
isT4PadEOLs()
Is t 4 pad eo ls boolean.
|
boolean |
isWriteTiled()
Is write tiled boolean.
|
void |
setCompression(int compression)
Specifies the type of compression to be used.
|
void |
setDeflateLevel(int deflateLevel)
Sets the compression level for DEFLATE-compressed data which should either
be
DEFAULT_COMPRESSION_* or a value in the
range [1,9] where larger values indicate more compression. |
void |
setJPEGCompressRGBToYCbCr(boolean JPEGCompressRGBToYCbCr)
Sets flag indicating whether to convert RGB data to YCbCr when the
compression type is JPEG.
|
void |
setLittleEndian(boolean littleEndian)
Sets little endian.
|
void |
setMultipage(boolean multipage)
Sets multipage.
|
void |
setReverseFillOrder(boolean reverseFillOrder)
Set value of flag indicating whether CCITT-compressed bilevel data should
be filled in reverse order.
|
void |
setT4Encode2D(boolean t4Encode2D)
Set value of flag indicating whether T4-compressed bilevel data should be
two-dimensionally encoded.
|
void |
setT4PadEOLs(boolean t4PadEOLs)
Sets value of flag indicating whether T4-compressed bilevel data should
have the embedded EOL bit sequences padded to byte alignment.
|
void |
setTileHeight(int tileHeight)
Sets the dimensions of the tiles to be written.
|
void |
setTileWidth(int tileWidth)
Sets the dimensions of the tiles to be written.
|
void |
setWriteTiled(boolean writeTiled)
If set, the data will be written out in tiled format, instead of in strips.
|
getHeight, getResolution, getTargetFileType, getWidth, setHeight, setResolution, setTargetFileType, setWidth
public static final int COMPRESSION_DEFLATE
public static final int COMPRESSION_GROUP3_1D
public static final int COMPRESSION_GROUP3_2D
public static final int COMPRESSION_GROUP4
public static final int COMPRESSION_JPEG_TTN2
public static final int COMPRESSION_LZW
public static final int COMPRESSION_NONE
public static final int COMPRESSION_PACKBITS
public static final int DEFLATER_DEFAULT_COMPRESSION
public static final int DEFLATER_BEST_COMPRESSION
public static final int DEFLATER_NO_COMPRESSION
public static final int DEFLATER_DEFAULT_STRATEGY
public static final int DEFLATER_BEST_SPEED
public static final int DEFLATER_DEFLATED
public static final int DEFLATER_FILTERED
public static final int DEFLATER_HUFFMAN_ONLY
public ToTiffJaiOptions()
public ToTiffJaiOptions(boolean multipage)
multipage
- the multipagepublic boolean isMultipage()
public void setMultipage(boolean multipage)
multipage
- the multipagepublic int getTileHeight()
public void setTileHeight(int tileHeight)
If JPEG compession is being used, the dimensions of the strips or tiles may be modified to conform to the JPEG-in-TIFF specification.
tileHeight
- the tile heightpublic int getTileWidth()
public void setTileWidth(int tileWidth)
If JPEG compession is being used, the dimensions of the strips or tiles may be modified to conform to the JPEG-in-TIFF specification.
tileWidth
- the tile widthpublic boolean isWriteTiled()
public void setWriteTiled(boolean writeTiled)
writeTiled
- the write tiledpublic boolean isT4PadEOLs()
public void setT4PadEOLs(boolean t4PadEOLs)
true
, zero-valued bits are prepended to each EOL bit sequence 0x001
such that the EOL is right-aligned on a byte boundary: xxxx-0000 0000-0001where "x" denotes a value which could be either data or a fill bit depending on the alignment of the data before the EOL. The default value is
false
.t4PadEOLs
- the new T4PadEOLs valuepublic boolean isT4Encode2D()
public void setT4Encode2D(boolean t4Encode2D)
true
the data are
two-dimensionally encoded; if false
they are
one-dimensionally encoded. The default value is true
.t4Encode2D
- the new T4Encode2D valuepublic boolean isReverseFillOrder()
public void setReverseFillOrder(boolean reverseFillOrder)
true
, pixels are arranged
within a byte such that pixels with lower column values are stored in the
lower order bits of the byte. Thus true
corresponds to TIFF
FillOrder value 2 and false
to TIFF FillOrder 1. The default
value is false
.reverseFillOrder
- the reverse fill orderpublic boolean isLittleEndian()
public void setLittleEndian(boolean littleEndian)
littleEndian
- the little endianpublic boolean isJPEGCompressRGBToYCbCr()
public void setJPEGCompressRGBToYCbCr(boolean JPEGCompressRGBToYCbCr)
true
. This
flag is ignored if the compression type is not JPEG.JPEGCompressRGBToYCbCr
- the jpeg compress rgb to y cb crpublic int getDeflateLevel()
public void setDeflateLevel(int deflateLevel)
DEFAULT_COMPRESSION_*
or a value in the
range [1,9] where larger values indicate more compression. The default
setting is DEFAULT_COMPRESSION
. This setting is
ignored if the compression type is not DEFLATE.deflateLevel
- the deflate levelpublic int getCompression()
public void setCompression(int compression)
compression
- The compression type.Copyright © 2015 GroupDocs. All rights reserved.