Enum TiffCompression
A név: Aspose.Note.Saving Összefoglaló: Aspose.Note.dll (25.4.0)
Határozza meg, hogy milyen típusú tömörítést kell használni a dokumentum TIFF formátumban történő tárolásakor.
public enum TiffCompression
Fields
Ccitt3 = 3
A CCITT csoport 3 fax kódolását írja elő.
Ccitt4 = 4
A CCITT csoport 4 fax kódolását írja elő.
Jpeg = 7
JPEG DCT tömörítés.
Lzw = 5
Meghatározza az LZW kompressziót.
None = 1
Nem tartalmaz kompressziót.
PackBits = 32773
Meghatározza a Macintosh RLE kompressziót.
Rle = 2
Az RLE kompresszió meghatározása.
Examples
Megmutatja, hogyan menthet egy dokumentumot képként Tiff formátumban a PackBits tömörítéssel.
// 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
});
Megmutatja, hogyan menthet egy dokumentumot képként Tiff formátumban Jpeg tömörítéssel.
// 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
});
Megmutatja, hogyan menthet egy dokumentumot képként Tiff formátumban a CCITT Group 3 faxkompresszióval.
// 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
});