Enum TiffCompression

Enum TiffCompression

Tên không gian: Aspose.Note.Saving Tổng hợp: Aspose.Note.dll (25.4.0)

Nên xác định loại nén nào để sử dụng khi lưu tài liệu vào định dạng TIFF.

public enum TiffCompression

Fields

Ccitt3 = 3

Xác định CCITT Group 3 fax mã hóa.

Ccitt4 = 4

Xác định CCITT Group 4 fax mã hóa.

Jpeg = 7

Định nghĩa JPEG DCT Compression.

Lzw = 5

Định nghĩa LZW Compression.

None = 1

Không xác định nén.

PackBits = 32773

Tính năng của Macintosh RLE Compression

Rle = 2

Định nghĩa của RLE Compression.

Examples

Hiển thị cách lưu một tài liệu như một hình ảnh trong định dạng Tiff bằng cách sử dụng nén 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
                                                                                                                 });

Hiển thị cách lưu một tài liệu như một hình ảnh trong định dạng Tiff bằng cách sử dụng 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
                                                                                                             });

Hiển thị cách lưu một tài liệu như một hình ảnh trong định dạng Tiff bằng cách sử dụng CCITT Group 3 fax compression.

// 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
                                                                                                                          });
 Tiếng Việt