Declaration
function PlugInAvailable(PlugIn: TIEPlugIns = []; RaiseException: Boolean = False): Boolean;
Description
Checks if a plug-in is available. To improve performance, the existence of each plug-in is only checked one during a session (i.e. each time an application is run).
If the plug-in has not been loaded, ImageEn will look for it in the EXE folder and initialize it.
If RaiseExcept is true, an exception will occur if the DLL is not found (in this case, it will check the entire system path for the DLL, even if we checked previously in this session).
Result is true if the plug-in is available.
The following plug-ins are loaded if available:
Plug-In | Const | Description |
IELib | iepiIELib | Support for Camera Raw formats, and faster loading of JPEG, PNG and JPEG2000 |
IEVision | iepiIEVision | Advanced functionality plug-in |
IELang | iepiLanguages | Localization of the ImageEn user interface and actions in over twenty languages |
PDFium | iepiPDFium | Viewing and editing of PDF documents |
ImageMagick | iepiImageMagick | Support for a wider range of image formats (supports both installed and DLL-only versions) |
SevenZip | iepiSevenZip | Support for ZIP files |
WebP | iepiWebP | Loading and saving of WebP files |
Note:
◼If multiple plug-ins are passed to
PlugInAvailable, result will be false if any fail to load
◼PlugInAvailable can be used as an alternative to
RegisterPlugIns because it offers better performance by only checking for each plug-in once per session
◼To force checking for a plug-in during a session (e.g. after it has been copied to the EXE folder), call
RegisterPlugIns◼The expected version of IELib/IEVision is available from:
ImageEnVersion.IELibVersionStr◼Registering of the IELib, IELang and PDFium plug-ins is optional as they will be automatically registered when they are first needed (if found in your EXE folder)
◼To register the legacy ImageMagick plug-In, ImageMagick.dll use:
IEAddExtIOPlugInif IEGlobalSettings().PlugInAvailable([ iepiWebP ]) = False then
ShowMessage( 'WebP DLL not found! Please reinstall' );
// WebP DLL has now been loaded!
// Which is the same as:
if not ( iepiWebP in IEGlobalSettings().RegisterPlugIns([ iepiWebP ]) then
ShowMessage( 'WebP DLL not found! Please reinstall' );
See Also
◼RegisterPlugIns◼ActivePlugIns◼DLLLoadingLog