ImageEn, unit iexHeif

LibHeif_IsAvailable

LibHeif_IsAvailable

Declaration

function LibHeif_IsAvailable(ExeFolderOnly: Boolean; RaiseExcept: Boolean): Boolean; overload;
function LibHeif_IsAvailable(const DLLPath: String = ''; RaiseExcept: Boolean = False): Boolean; overload;

Description

Checks if the LibHeif DLL is available and initializes it.
If ExeFolderOnly is true, only the folder of the application EXE is checked for IEVision DLLs.
Alternatively, you can specify a path to the DLL, which can either be a full filename or a folder.
If RaiseExcept is true, an exception will occur if the DLL is not found.

Note: You are better to use RegisterPlugIns or PlugInAvailable rather than LibHeif_IsAvailable

Example

if not LibHeif_IsAvailable() then
  ShowMessage( 'LibHeif DLL not found! Please reinstall' );

// Which is the same as:
if not ( iepiHeif in IEGlobalSettings().RegisterPlugIns([ iepiHeif ]) then
  ShowMessage( 'LibHeif DLL not found! Please reinstall' );

See Also

RegisterPlugIns
PlugInAvailable
DLLLoadingLog