Enum TiffCompression

Enum TiffCompression

ชื่อพื้นที่: Aspose.Note.Saving การประกอบ: Aspose.Note.dll (25.4.0)

รายละเอียดประเภทการบีบอัดที่จะใช้เมื่อบันทึกเอกสารในรูปแบบ TIFF

public enum TiffCompression

Fields

Ccitt3 = 3

ข้อมูลจําเพาะของ CCITT Group 3 การเข้ารหัส fax

Ccitt4 = 4

ข้อมูลจําเพาะของ CCITT Group 4 การเข้ารหัส fax

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

แสดงวิธีการบันทึกเอกสารเป็นภาพในรูปแบบ Tiff โดยใช้การบีบอัดเฟ็กซ์ 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
                                                                                                                          });
 แบบไทย