Aspose.Imaging.Examples.CSharp.ModifyingAndConvertingImages.DjVu.ConvertDjVuToTIFF.Run C# (CSharp) Метод

Run() публичный статический Метод

public static Run ( ) : void
Результат void
        public static void Run()
        {
            // ExStart:ConvertDjVuToTIFF
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_DjVu();

            // Load a DjVu image
            using (DjvuImage image = (DjvuImage)Image.Load(dataDir + "Sample.djvu"))
            {
                // Create an instance of TiffOptions & use preset options for Black n While with Deflate compression
                TiffOptions exportOptions = new TiffOptions(TiffExpectedFormat.TiffDeflateBw);

                // Initialize the DjvuMultiPageOptions and Call Save method while passing instance of TiffOptions
                exportOptions.MultiPageOptions = new DjvuMultiPageOptions();
                image.Save(dataDir + "ConvertDjVuToTIFFFormat_out.tiff", exportOptions);
            }
            // ExEnd:ConvertDjVuToTIFF
        }
    }
ConvertDjVuToTIFF