Enum TiffCompression
Enum TiffCompression
Namn på plats: Aspose.Note.Saving Sammanfattning: Aspose.Note.dll (25.4.0)
Anger vilken typ av kompression som ska användas när ett dokument sparas i TIFF-format.
public enum TiffCompression
Fields
Ccitt3 = 3
Anger CCITT Group 3 faxkodning.
Ccitt4 = 4
Anger CCITT Group 4 faxkodning.
Jpeg = 7
Specifikerar JPEG DCT kompression.
Lzw = 5
Specifikerar LZW kompression.
None = 1
Anger ingen kompression.
PackBits = 32773
Specifikerar Macintosh RLE kompression.
Rle = 2
Specifikerar RLE komprimering.
Examples
Visa hur man sparar ett dokument som en bild i Tiff-format med hjälp av PackBits-kompression.
// 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
});
Visa hur man sparar ett dokument som en bild i Tiff-format med hjälp av Jpeg-kompression.
// 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
});
Visa hur man sparar ett dokument som en bild i Tiff-format med hjälp av CCITT Group 3 faxkompression.
// 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
});