ImageEn, unit iexHelperFunctions |
|
TBitmap.IELoadFromFileFast
TBitmap.IELoadFromFileFast
Declaration
function IELoadFromFileFast(const Filename: string;
MaxX, MaxY: integer;
AutoAdjustOrientation: Boolean = False
): Boolean;
Description
Allows you to load an image into a TBitmap using the fastest method 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.
Example
// Load the specified image as fast as possible, but bigger than screen size
MyBitmap.IELoadFromFileFast('D:\MyImage.jpeg', Screen.Width, Screen.Height)