Enum TiffCompression

Enum TiffCompression

Navne til: Aspose.Note.Saving Sammensætning: Aspose.Note.dll (25.4.0)

Det angiver, hvilken type kompression du skal bruge, når du gemmer et dokument i TIFF-format.

public enum TiffCompression

Fields

Ccitt3 = 3

Specifikerer CCITT Group 3 fax kodning.

Ccitt4 = 4

Specifikerer CCITT Group 4 fax kodning.

Jpeg = 7

Specifikerer JPEG DCT kompression.

Lzw = 5

Specifikation af LZW kompression.

None = 1

Det angiver ingen kompression.

PackBits = 32773

Specifikation af Macintosh RLE kompression.

Rle = 2

Specifikation af RLE kompression.

Examples

Se, hvordan man gemmer et dokument som et billede i Tiff-format ved hjælp af 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
                                                                                                                 });

Se, hvordan man gemmer et dokument som et billede i Tiff-format ved hjælp af 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
                                                                                                             });

Se, hvordan man gemmer et dokument som et billede i Tiff-format ved hjælp af 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
                                                                                                                          });
 Dansk