ImageEn, unit iexHelperFunctions

TBitmap.IELoadFromStreamFast

TBitmap.IELoadFromStreamFast


Declaration


function IELoadFromStreamFast(Stream: TStream; FileType: TIOFileType;
                              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.

If you know the FileType type of the stream, pass it to speed up loading. Otherwise specify ioUnknown.

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.IELoadFromStreamFast( MyStream, ioUnknown, Screen.Width, Screen.Height )