TImageEnIO.LoadFromFileWebP
Declaration
function LoadFromFileWebP(const FileName: WideString): Boolean;
Description
Loads an image from a WebP file.
FileName is the file name including extension.
Result will be false if the file is not WebP format (and
Aborting will be true). Loading errors due to a file not being available will raise an exception.
Note:
◼ LoadFromStreamWebP requires Delphi 12 or newer. You must add Vcl.Skia to the uses clause (of any of your project units) to support WebP
◼ You can also load WebP, using
ImageMagick or WIC◼ You can abort loading by setting
Aborting to true
◼ Skia WebP does not support multiple frame WebP files (only the first image is loaded)
Example
uses
Vcl.Skia;
ImageEnView1.IO.LoadFromFileWebP('C:\alfa.WebP');