TImageEnIO.LoadFromFileHeif
Declaration
function LoadFromFileHeif(const FileName: WideString): Boolean;
Description
Loads an image from a Heif file.
FileName is the file name including extension.
Result will be false if the file is not Heif format (and
Aborting will be true). Loading errors due to a file not being available will raise an exception.
The method used to load Heif files is specified by
ActiveHeifEngine.
Note:
◼You can abort loading by setting
Aborting to true
◼Multiple frame Heif files are supported, specify the image to load using
ImageIndex
◼If
NativePixelFormat = True, the image will be returned in ie32RGB format with alpha in the
A channel
Example
ImageEnView1.IO.LoadFromFileHeif('C:\alfa.heif');
See Also
◼LoadFromStreamHeif
◼SaveToFileHeif