Enum TiffCompression
Enum TiffCompression
nazivni prostor: Aspose.Note.Saving Sastav: Aspose.Note.dll (25.4.0)
Nastavi koju vrstu kompresije treba koristiti prilikom spašavanja dokumenta u formatu TIFF.
public enum TiffCompression
Fields
Ccitt3 = 3
Određuje CCITT Grupa 3 faks kodiranje.
Ccitt4 = 4
Određuje CCITT Grupa 4 faks kodiranje.
Jpeg = 7
Specifikacija JPEG DCT kompresije.
Lzw = 5
Specifikacija LZW kompresije.
None = 1
Ne određuje kompresije.
PackBits = 32773
Prikazuje Macintosh RLE kompresije.
Rle = 2
Specifikacija RLE kompresije.
Examples
Prikazuje kako sačuvati dokument kao sliku u Tiff formatu pomoću kompresije 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
});
Prikazuje kako sačuvati dokument kao sliku u Tiff formatu pomoću Jpeg kompresije.
// 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
});
Prikazuje kako sačuvati dokument kao sliku u Tiff formatu pomoću CCITT Grupa 3 faks kompresije.
// 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
});