WebPImage Constructor (String) |
Namespace: Aspose.Imaging.FileFormats.Webp
[C#] string dir = "c:\\temp\\"; // Load a WebP image from a file. using (Aspose.Imaging.FileFormats.Webp.WebPImage webPImage = new Aspose.Imaging.FileFormats.Webp.WebPImage(dir + "test.webp")) { // Save to PNG // Note that only the active frame will be stored to PNG, since PNG is not a multi-page format. webPImage.Save(dir + "test.output.png", new Aspose.Imaging.ImageOptions.PngOptions()); }