ImageEn, unit iexHelperFunctions

TBitmapHelper.IELoadFromFile

TBitmapHelper.IELoadFromFile


Declaration

// Standard overload
function IELoadFromFile(const Filename : string): Boolean; overload;

// Fast overload
function IELoadFromFile(const  Filename: string;
                        MaxX, MaxY: integer;
                        AutoAdjustOrientation: Boolean = False
                        ): Boolean; overload;


Description

Allows a TBitmap to load any format supported by ImageEn.
The fast overload allows you to load much faster by specifying the maximum size it is required. It uses OptimizeLoadingParams.
You can also set EnableAdjustOrientation to automatically re-orient JPEG camera images.
Returns True if loading was successful, or False on error

Note: You must add the iexHelperFunctions unit to your uses clause


Example

// Load MyImage.jpeg into a bitmap
MyBitmap.IELoadFromFile('D:\MyImage.jpeg');

// Load the specified image as fast as possible, but bigger than screen size
MyBitmap.IELoadFromFile('D:\MyImage.jpeg', Screen.Width, Screen.Height);


Compatibility Information

Prior to v12.0.0, the fast overload was named IELoadFromFileFast();