Enum TiffCompression
Contents
[
Hide
]TiffCompression enumeration
Specifies what type of compression to use when saving a document to the TIFF format.
public enum TiffCompression
Values
Name | Value | Description |
---|---|---|
None | 1 | Specifies no compression. |
Rle | 2 | Specifies RLE compression. |
Ccitt3 | 3 | Specifies CCITT Group 3 fax encoding. |
Ccitt4 | 4 | Specifies CCITT Group 4 fax encoding. |
Lzw | 5 | Specifies LZW compression. |
PackBits | 32773 | Specifies Macintosh RLE compression. |
Jpeg | 7 | Specifies JPEG DCT compression compression. |
Examples
Shows how to save a document as image in Tiff format using PackBits compression.
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
// Load the document into Aspose.Note.
Document oneFile = new Document(Path.Combine(dataDir, "Aspose.one"));
var dst = Path.Combine(dataDir, "SaveToTiffUsingPackBitsCompression.tiff");
// Save the document.
oneFile.Save(dst, new ImageSaveOptions(SaveFormat.Tiff)
{
TiffCompression = TiffCompression.PackBits
});
Shows how to save a document as image in Tiff format using Jpeg compression.
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
// Load the document into Aspose.Note.
Document oneFile = new Document(Path.Combine(dataDir, "Aspose.one"));
var dst = Path.Combine(dataDir, "SaveToTiffUsingJpegCompression.tiff");
// Save the document.
oneFile.Save(dst, new ImageSaveOptions(SaveFormat.Tiff)
{
TiffCompression = TiffCompression.Jpeg,
Quality = 93
});
Shows how to save a document as image in Tiff format using CCITT Group 3 fax compression.
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
// Load the document into Aspose.Note.
Document oneFile = new Document(Path.Combine(dataDir, "Aspose.one"));
var dst = Path.Combine(dataDir, "SaveToTiffUsingCcitt3Compression.tiff");
// Save the document.
oneFile.Save(dst, new ImageSaveOptions(SaveFormat.Tiff)
{
ColorMode = ColorMode.BlackAndWhite,
TiffCompression = TiffCompression.Ccitt3
});
See Also
- namespace Aspose.Note.Saving
- assembly Aspose.Note