Enum TiffCompression

Enum TiffCompression

Nazwa przestrzeń: Aspose.Note.Saving Zgromadzenie: Aspose.Note.dll (25.4.0)

Określa, jaki rodzaj kompresji należy użyć podczas przechowywania dokumentu w formacie TIFF.

public enum TiffCompression

Fields

Ccitt3 = 3

Sprawdź kodowanie faksu CCITT Group 3.

Ccitt4 = 4

Sprawdź kodowanie faksu CCITT Group 4.

Jpeg = 7

Specyfikuje kompresję JPEG DCT.

Lzw = 5

Wskaźnik kompresji LZW.

None = 1

Nie określa kompresji.

PackBits = 32773

Kompresja Macintosh RLE.

Rle = 2

Określ kompresję RLE.

Examples

Pokaż, jak zapisać dokument jako obraz w formacie Tiff za pomocą kompresji 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
                                                                                                                 });

Pokaż, jak zapisać dokument jako obraz w formacie Tiff za pomocą kompresji 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
                                                                                                             });

Pokaż, jak zapisać dokument jako obraz w formacie Tiff za pomocą kompresji faksu CCITT Group 3.

// 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
                                                                                                                          });
 Polski