ImageEn, unit iexHelperFunctions

TImageEnIOHelper.LoadFromFilePlugIn

TImageEnIOHelper.LoadFromFilePlugIn

Declaration

function LoadFromFilePlugIn(const FileName: string; PlugIn: TIEPlugIn; ImageIndex: Integer = 0): Boolean;

Description

Load an image using an ImageEn PlugIn even if the type is natively supported by ImageEn.
Returns True if loading was successful, or False on error.

You can specify one of the following for PlugIn:
◼iepiIELib/iepiIEVision: Loads the image using the IELib DLL (JPEG, PNG or JPEG2000)
◼iepiPDFium: Loads the image using PDFium PlugIn
◼iepiImageMagick: Loads the image using ImageMagick
◼iepiWebP: Loads the image using LibWebP PlugIn
◼iepiHeif: Loads the image using LibHeif PlugIn

Note:
◼You must add the iexHelperFunctions unit to your uses clause
◼Delphi/C++ 2005 or newer is required to use helper classes
◼Raises an exception if the plug-in is not available

Example

// Use ImageMagick to load a TIFF file (that may not be supported by ImageEn)
ImageEnView1.IO.LoadFromFilePlugIn( 'D:\Image.tiff', iepiImageMagick );

See Also

◼LoadFromFilePlugIn
◼TIEMiscPluginsImageMagick