ImageEn, unit iexHelperFunctions

TIEBitmap.IELoadFromFileFast

TIEBitmap.IELoadFromFileFast


Declaration


function IELoadFromFileFast(const sFilename: string;
                            iMaxX, iMaxY: integer;
                            bAutoAdjustOrientation: Boolean = False;
                            IOParams: TIOParams = nil
                            ): Boolean;


Description


Allows you to load an image into a TIEBitmap using the fastest method by specifying the maximum size it is required.
It uses OptimizeLoadingParams and WicFastLoading.
You can also set EnableAdjustOrientation to automatically re-orient JPEG camera images.
You can optionally pass an TIOParams object for the I/O parameters of the file.

Returns True if loading was successful, or False on error.


Example


// Load the specified image as fast as possible, but bigger than the screen dimensions
MyIEBitmap.IELoadFromFileFast('D:\MyImage.jpeg', Screen.Width, Screen.Height)