| ImageEn, unit iexHelperFunctions |
|
TBitmapHelper.IELoadFromStream
Declaration
// Standard overload
function IELoadFromStream(Stream: TStream; FileType: TIOFileType = ioUnknown): Boolean; overload;
// Fast overload
function IELoadFromStreamEx(Stream: TStream; FileType: TIOFileType;
MaxX, MaxY: Integer;
AutoAdjustOrientation: Boolean = False
): Boolean;
Description
Allows a
TBitmap to load any format supported by ImageEn.
If you know the
file format of the stream, specify it to speed up loading.
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
◼Delphi/C++ 2005 or newer is required to use helper classes
Example
// Load MyImage.jpeg into a bitmap
MyBitmap.IELoadFromStream( MyStream );
// Load the specified image as fast as possible, but bigger than screen size
MyBitmap.IELoadFromStream( MyStream, ioUnknown, Screen.Width, Screen.Height );
See Also
◼Advanced Helper Methods
◼All TBitmap Methods
Compatibility Information
Prior to v12.0.0, the fast overloads were named IELoadFromStreamFast();