Enum TiffCompression
Nama dari : Aspose.Note.Saving Perhitungan: Aspose.Note.dll (25.4.0)
Menentukan jenis kompresi apa yang harus digunakan saat menyimpan dokumen dalam format TIFF.
public enum TiffCompression
Fields
Ccitt3 = 3
Mengidentifikasi CCITT Group 3 fax coding.
Ccitt4 = 4
Mengidentifikasi CCITT Group 4 fax coding.
Jpeg = 7
Menentukan kompresi JPEG DCT.
Lzw = 5
Menentukan kompresi LZW.
None = 1
Tidak menentukan kompresi.
PackBits = 32773
Menggunakan Macintosh RLE Compression.
Rle = 2
Menentukan kompresi RLE.
Examples
Menunjukkan cara menyimpan dokumen sebagai gambar dalam format Tiff menggunakan kompresi 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
});
Menunjukkan cara menyimpan dokumen sebagai gambar dalam format Tiff menggunakan kompresi 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
});
Menunjukkan cara menyimpan dokumen sebagai gambar dalam format Tiff menggunakan CCITT Group 3 faks kompresi.
// 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
});