Enum TiffCompression

Enum TiffCompression

De naam: Aspose.Note.Saving Verzameling: Aspose.Note.dll (25.4.0)

Specificeert welke vorm van compressie te gebruiken bij het opslaan van een document in het TIFF-formaat.

public enum TiffCompression

Fields

Ccitt3 = 3

Vervolgens wordt de CCITT Group 3 faxcode aangegeven.

Ccitt4 = 4

Geef de CCITT Group 4 fax codering aan.

Jpeg = 7

De JPEG DCT compressie wordt gecomprimeerd.

Lzw = 5

De LZW-compressie wordt bepaald.

None = 1

Er wordt geen compressie aangegeven.

PackBits = 32773

De Macintosh RLE compressie.

Rle = 2

Het gaat om RLE compressie.

Examples

Toon hoe u een document als afbeelding in Tiff-formaat kunt opslaan met behulp van PackBits-compressie.

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

Toon hoe u een document als afbeelding in Tiff-formaat kunt opslaan met behulp van Jpeg-compressie.

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

Toon hoe u een document als afbeelding in Tiff-formaat kunt opslaan met behulp van CCITT Group 3 faxcompressie.

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