Enum TiffCompression

Enum TiffCompression

Le nom : Aspose.Note.Saving Assemblée: Aspose.Note.dll (25.4.0)

spécifie le type de compression à utiliser lors de l’enregistrement d’un document dans le format TIFF.

public enum TiffCompression

Fields

Ccitt3 = 3

Explique le codage de fax du groupe CCITT 3.

Ccitt4 = 4

Définir le codage de fax du groupe CCITT 4.

Jpeg = 7

Compression de JPEG DCT.

Lzw = 5

Déterminer la compression LZW.

None = 1

Non specificare la compressione.

PackBits = 32773

Compression Macintosh RLE.

Rle = 2

Déterminer la compression RLE.

Examples

Affichez comment sauvegarder un document comme image dans le format Tiff en utilisant la compression 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
                                                                                                                 });

Affichez comment enregistrer un document comme image dans le format Tiff en utilisant la compression 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
                                                                                                             });

Affichez comment enregistrer un document comme image dans le format Tiff en utilisant la compression de fax 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
                                                                                                                          });
 Français