Enum TiffCompression

Enum TiffCompression

名称: Aspose.Note.Saving 集合: Aspose.Note.dll (25.4.0)

指定在 TIFF 格式保存文档时使用什么类型的压缩。

public enum TiffCompression

Fields

Ccitt3 = 3

指定 CCITT 组 3 传真编码。

Ccitt4 = 4

指定 CCITT 组 4 传真编码。

Jpeg = 7

定义 JPEG DCT 压缩。

Lzw = 5

指定LZW压缩。

None = 1

没有压缩。

PackBits = 32773

Macintosh RLE 压缩。

Rle = 2

指定 RLE 压缩。

Examples

显示如何保存文档作为图像在 Tiff 格式使用 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
                                                                                                                 });

显示如何保存文档作为图像在 Tiff 格式使用 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
                                                                                                             });

显示如何使用 CCITT Group 3 传真压缩保存文档作为图像的 Tiff 格式。

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