ImageEn, unit iesettings

TIEGlobalSettings.ActivePNGEngine

TIEGlobalSettings.ActivePNGEngine


Declaration

function ActivePNGEngine(Recheck: Boolean = False): TIEImagingEngine;


Description

Returns the engine being used to load and save PNG format images.
This will be the same as PNGEngine unless ieenAuto is active, in which case it will return ieenDLL if a DLL is available, otherwise ieenNative in 32bit apps or ieenWIC in 64bit apps
For performance, checking is only performed at application start up. Set Recheck to true if status may have changed (e.g. a DLL may now be available).


Example

IEGlobalSettings().PNGEngine := ieenAuto;
if IEGlobalSettings().ActivePNGEngine = ieenNative then
  ShowMessage('Native loading is being used for PNG');


See Also

 PNGEngine