Enum TiffCompression
İsim alanı : Aspose.Note.Saving Toplama: Aspose.Note.dll (25.4.0)
Bir belgeyi TIFF biçiminde kaydetmek için hangi kompresyon türünü belirtir.
public enum TiffCompression
Fields
Ccitt3 = 3
CCITT Grubu 3 faks kodlaması belirtilir.
Ccitt4 = 4
CCITT Grubu 4 faks kodlaması belirtilir.
Jpeg = 7
JPEG DCT kompresyonu belirlenir.
Lzw = 5
LZW kompresyonu belirlenir.
None = 1
Kompresyonu belirlemez.
PackBits = 32773
Macintosh RLE kompresyonunu belirleyin.
Rle = 2
RLE kompresyonu belirler.
Examples
PackBits kompresyonu kullanarak Tiff formatında bir belgeyi resim olarak nasıl kaydeteceğinizi gösterir.
// 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
});
Jpeg kompresyonu kullanarak Tiff formatında bir belgeyi resim olarak nasıl kaydeteceğinizi gösterir.
// 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
});
CCITT Group 3 faks kompresyonu kullanılarak Tiff formatında bir belgeyi resim olarak nasıl kaydedeceğinizi gösterir.
// 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
});