com.aspose.words
Class TiffCompression

java.lang.Object
    extended by com.aspose.words.TiffCompression

public class TiffCompression 
extends java.lang.Object

Utility class containing constants. Specifies what type of compression to apply when saving page images into a TIFF file.

Example:

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() + "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 intNONE = 0
           Specifies no compression.
static final intRLE = 1
           Specifies the RLE compression scheme.
static final intLZW = 2
           Specifies the LZW compression scheme. In Java emulated by Deflate (Zip) compression.
static final intCCITT_3 = 3
           Specifies the CCITT3 compression scheme.
static final intCCITT_4 = 4
           Specifies the CCITT4 compression scheme.
 

Field Detail

NONE = 0

public static final int NONE
Specifies no compression.

RLE = 1

public static final int RLE
Specifies the RLE compression scheme.

LZW = 2

public static final int LZW
Specifies the LZW compression scheme. In Java emulated by Deflate (Zip) compression.

CCITT_3 = 3

public static final int CCITT_3
Specifies the CCITT3 compression scheme.

CCITT_4 = 4

public static final int CCITT_4
Specifies the CCITT4 compression scheme.

See Also:
          Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
          Aspose.Words Support Forum - our preferred method of support.