ImageEn, unit iexWebP

LibWebP_IsAvailable


Declaration

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


Description

Checks if the IEWebP 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 LibWebP_IsAvailable


Example

if not LibWebP_IsAvailable() then
  ShowMessage( 'WebP DLL not found! Please reinstall' );

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


See Also

RegisterPlugIns
PlugInAvailable
DLLLoadingLog