public class TiffCompression
Example:
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.insertImage(getImageDir() + "Logo.jpg");
// Create an "ImageSaveOptions" object which we can pass to the document's "Save" method
// to modify the way in which that method renders the document into an image.
ImageSaveOptions options = new ImageSaveOptions(SaveFormat.TIFF);
// Set the "TiffCompression" property to "TiffCompression.None" to apply no compression while saving,
// which may result in a very large output file.
// Set the "TiffCompression" property to "TiffCompression.Rle" to apply RLE compression
// Set the "TiffCompression" property to "TiffCompression.Lzw" to apply LZW compression.
// Set the "TiffCompression" property to "TiffCompression.Ccitt3" to apply CCITT3 compression.
// Set the "TiffCompression" property to "TiffCompression.Ccitt4" to apply CCITT4 compression.
options.setTiffCompression(tiffCompression);
doc.save(getArtifactsDir() + "ImageSaveOptions.TiffImageCompression.tiff", options);
Field Summary | ||
---|---|---|
static final int | NONE | |
Specifies no compression.
|
||
static final int | RLE | |
Specifies the RLE compression scheme.
|
||
static final int | LZW | |
Specifies the LZW compression scheme.
In Java emulated by Deflate (Zip) compression.
|
||
static final int | CCITT_3 | |
Specifies the CCITT3 compression scheme.
|
||
static final int | CCITT_4 | |
Specifies the CCITT4 compression scheme.
|
public static final int NONE
public static final int RLE
public static final int LZW
public static final int CCITT_3
public static final int CCITT_4