public class TIFFOptions extends Object
| Modifier and Type | Field and Description | 
|---|---|
static int | 
DITHER_FLOYD_STEINBERG
Use Floyd-Steinberg dithering when converting to B&W 
 | 
static int | 
DITHER_NONE
Do not dither output B&W images 
 | 
static String | 
TIFF_CCITT_RLE
TIFF CCITT Modified Huffman RLE compression. 
 | 
static String | 
TIFF_CCITT_T4
TIFF CCITT Group 3 fax encoding. 
 | 
static String | 
TIFF_CCITT_T6
TIFF CCITT Group 4 fax encoding. 
 | 
static String | 
TIFF_DEFLATE
TIFF Deflate lossless compression (Zip-in-TIFF). 
 | 
static String | 
TIFF_FAX_GROUP3
TIFF CCITT Group 3 fax encoding. 
 | 
static String | 
TIFF_FAX_GROUP4
TIFF CCITT Group 4 fax encoding. 
 | 
static String | 
TIFF_JPEG
TIFF JPEG-in-TIFF compression. 
 | 
static String | 
TIFF_LZW
TIFF LZW Compression 
 | 
static String | 
TIFF_NO_COMPRESSION
TIFF with no compression. 
 | 
static String | 
TIFF_PACKBITS
TIFF Byte-oriented run-length encoding "PackBits" compression. 
 | 
static String | 
TIFF_ZLIB
TIFF ZLib Compression. 
 | 
| Constructor and Description | 
|---|
TIFFOptions(int dpi,
           String compression)
TIFFOptions constructor that allows setting of DPI and compression format. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
ByteOrder | 
getByteOrder()
Gets the byte order to use when saving a TIFF file. 
 | 
String | 
getCompression()
Return the current compression setting fo this TIFFOptions. 
 | 
int | 
getDitherBW()
Gets the dithering option when converting images to black and white. 
 | 
int | 
getDPI()
Return the DPI setting for this TIFFOptions. 
 | 
float | 
getJPEGQuality()
Gets the current setting for the JPEG quality. 
 | 
int | 
getRowsPerStrip()
Returns the number of rows per strip that will be used when saving a TIFF file. 
 | 
boolean | 
isGrayscale()
Returns a flag indicating whether the document should be converted to grayscale before
 writing the output TIFF file. 
 | 
void | 
setByteOrder(ByteOrder byteOrder)
Sets the byte order to use when saving a TIFF file. 
 | 
void | 
setDitherBW(int ditherBW)
Sets the dithering option when converting images to black and white. 
 | 
void | 
setGrayscale(boolean grayscale)
Sets the grayscale flag. 
 | 
void | 
setJPEGQuality(float jpegQuality)
Sets the JPEG quality to be used when saving a JPEG compressed TIFF file. 
 | 
void | 
setRowsPerStrip(int rowsPerStrip)
Sets the number of rows per strip to use when writing the TIFF file. 
 | 
public static final String TIFF_DEFLATE
public static final String TIFF_CCITT_RLE
public static final String TIFF_CCITT_T4
public static final String TIFF_FAX_GROUP3
public static final String TIFF_CCITT_T6
public static final String TIFF_FAX_GROUP4
public static final String TIFF_JPEG
public static final String TIFF_LZW
public static final String TIFF_PACKBITS
public static final String TIFF_ZLIB
public static final String TIFF_NO_COMPRESSION
public static final int DITHER_NONE
public static final int DITHER_FLOYD_STEINBERG
public TIFFOptions(int dpi,
                   String compression)
dpi - Dots per inch at which to render the image, 72 is the native PDF resolution and is equivalent to 100% scale..compression - The type of TIFF compression to use.  This value needs to be one of
 these predefined values:public int getDPI()
public String getCompression()
public ByteOrder getByteOrder()
public void setByteOrder(ByteOrder byteOrder)
byteOrder - The byte order to use, this can be either ByteOrder.BIG_ENDIAN or
 BYTEOrder.LITTLE_ENDIAN.public void setRowsPerStrip(int rowsPerStrip)
rowsPerStrip - The number of rows per strip in the output file.  Use -1 to output the
 file as a single strip file.public int getRowsPerStrip()
public boolean isGrayscale()
public void setGrayscale(boolean grayscale)
grayscale - The new value of the grayscale flag.public int getDitherBW()
public void setDitherBW(int ditherBW)
ditherBW - The new value of the dithering optionpublic float getJPEGQuality()
public void setJPEGQuality(float jpegQuality)
jpegQuality - The JPEG quality setting, should be between 0 and 1.