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
◼You can select which frame to load using
ImageIndex (0..ImageCount-1). Animated WebP requires a current
iewebp32.dll /
iewebp64.dll
◼If
NativePixelFormat = True, the image will be returned in ie32RGB format with alpha in the
A channel
Example
ImageEnView1.IO.LoadFromFileWebP('C:\alfa.WebP');
See Also
◼LoadFromStreamWebP
◼SaveToFileWebP