Enum TiffCompression

Enum TiffCompression

Именује се: Aspose.Note.Saving Асамблеја: Aspose.Note.dll (25.4.0)

Опрема која врста компресије треба користити приликом складиштења документа у ТИФФ формату.

public enum TiffCompression

Fields

Ccitt3 = 3

Потврђује ЦЦИТТ Група 3 факс кодирање.

Ccitt4 = 4

Потврђује ЦЦИТТ Груп 4 факс кодирање.

Jpeg = 7

Карактерише JPEG DCT компресију.

Lzw = 5

Опрема ЛЗВ компресије.

None = 1

Не одређује компресију.

PackBits = 32773

Опрема Macintosh RLE компресије.

Rle = 2

Препоручује се компресија.

Examples

Показује како да сачувате документ као слику у Тифф формату користећи компресију ПацкБитс.

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

Показује како да сачувате документ као слику у Тифф формату користећи компресију Јпег.

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

Показује како да сачувате документ као слику у Тифф формату користећи ЦЦИТТ Груп 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
                                                                                                                          });
 Српски