Enum TiffCompression

Enum TiffCompression

Pôvodný názov: Aspose.Note.Saving Zhromaždenie: Aspose.Note.dll (25.4.0)

Určuje, aký typ kompresie používať pri ukladaní dokumentu do formátu TIFF.

public enum TiffCompression

Fields

Ccitt3 = 3

Zodpovedá CCITT Group 3 faxové kódovanie.

Ccitt4 = 4

Zodpovedá CCITT Group 4 faxové kódovanie.

Jpeg = 7

Zodpovedá kompresia JPEG DCT.

Lzw = 5

Predpokladá sa LZW kompresia.

None = 1

Neobsahuje žiadne kompresie.

PackBits = 32773

Prečítajte si tiež: Macintosh RLE kompresia.

Rle = 2

Určuje RLE kompresiu.

Examples

Ukážte, ako uložiť dokument ako obrázok vo formáte Tiff pomocou kompresie 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
                                                                                                                 });

Ukážte, ako uložiť dokument ako obrázok vo formáte Tiff pomocou kompresie 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
                                                                                                             });

Ukážte, ako uložiť dokument ako obrázok vo formáte Tiff pomocou CCITT Group 3 faxovej kompresie.

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