public class TiffCompression
extends java.lang.Object
Examples:
Shows how to select the compression scheme to apply to a document that we convert into a TIFF image.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.insertImage(getImageDir() + "Tagged Image File Format.tiff");
// 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);
| Modifier and Type | Field and Description |
|---|---|
static int |
CCITT_3
Specifies the CCITT3 compression scheme.
|
static int |
CCITT_4
Specifies the CCITT4 compression scheme.
|
static int |
length |
static int |
LZW
Specifies the LZW compression scheme.
|
static int |
NONE
Specifies no compression.
|
static int |
RLE
Specifies the RLE compression scheme.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
fromName(java.lang.String tiffCompressionName) |
static java.lang.String |
getName(int tiffCompression) |
static int[] |
getValues() |
static java.lang.String |
toString(int tiffCompression) |
public static int NONE
public static int RLE
public static int LZW
public static int CCITT_3
public static int CCITT_4
public static int length