Enum TiffCompression
Название пространства: Aspose.Note.Saving Ассоциация: Aspose.Note.dll (25.4.0)
Определяет, какой тип компрессии использовать при сохранении документа в формате TIFF.
public enum TiffCompression
Fields
Ccitt3 = 3
Определяет CCITT Group 3 факс-кодирование.
Ccitt4 = 4
Определяет CCITT Group 4 факс-кодирование.
Jpeg = 7
Определяет компрессию JPEG DCT.
Lzw = 5
Определяет LZW компрессию.
None = 1
Не указывает компрессию.
PackBits = 32773
Определите компрессию Macintosh RLE.
Rle = 2
Определяет RLE компрессию.
Examples
Показать, как сохранить документ в виде изображения в формате Tiff с помощью компрессии PackBits.
// 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
});
Показать, как сохранить документ в виде изображения в формате Tiff с помощью компрессии Jpeg.
// 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
});
Показать, как сохранить документ в виде изображения в формате Tiff с помощью компрессии факса CCITT Group 3.
// 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
});