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

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

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

            // Load WebP image into the instance of image class.
            using (Image image = Image.Load(dataDir + "asposelogo.webp"))
            {
                // Save the image in WebP format.
                image.Save(dataDir + "ExportWebPToOtherImageFormats_out.bmp", new BmpOptions());
            }
            // ExEnd:ExportWebPToOtherImageFormats
        }
    }
ExportWebPToOtherImageFormats