Enum TiffCompression

Enum TiffCompression

Název místa: Aspose.Note.Saving Shromáždění: Aspose.Note.dll (25.4.0)

Určuje, jaký typ komprese použít při ukládání dokumentu do formátu TIFF.

public enum TiffCompression

Fields

Ccitt3 = 3

Zobrazuje CCITT Group 3 faxové kódování.

Ccitt4 = 4

Zobrazuje CCITT Group 4 faxové kódování.

Jpeg = 7

Komprese JPEG DCT kompresí.

Lzw = 5

Specifikace LZW komprese.

None = 1

Neobsahuje žádné komprese.

PackBits = 32773

Připravte si Macintosh RLE kompresi.

Rle = 2

Způsobuje RLE komprese.

Examples

Ukazuje, jak uložit dokument jako obrázek ve formátu Tiff pomocí komprese 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
                                                                                                                 });

Ukazuje, jak uložit dokument jako obrázek ve formátu Tiff pomocí komprese 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
                                                                                                             });

Ukazuje, jak ukládat dokument jako obrázek ve formátu Tiff pomocí CCITT Group 3 faxové komprese.

// 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
                                                                                                                          });
 Čeština