WebPImage Constructor (String)
Initializes a new instance of the WebPImage class from file.

Namespace: Aspose.Imaging.FileFormats.Webp
Assembly: Aspose.Imaging (in Aspose.Imaging.dll) Version: 21.04
public WebPImage(
	string path


Type: SystemString
The path to file WebP Image
This example shows how to load a WebP image from a file and save it to PNG.

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());
See Also