Enum TiffCompression
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
});