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.
The method used to load WebP files is specified by
ActiveWebPEngine.
Note:
◼You can abort loading by setting
Aborting to true
◼Multiple frame WebP files are not supported (only the first image is loaded)
◼If
NativePixelFormat = True image will be returned in ie32RGB format with alpha in the
A channelImageEnView1.IO.LoadFromFileWebP('C:\alfa.WebP');
See Also
◼LoadFromStreamWebP◼SaveToFileWebP