ImageEn, unit iexHelperFunctions

TIEBitmap.IELoadFromStream

TIEBitmap.IELoadFromStream


Declaration

function IELoadFromStream(Stream: TStream; FileType: integer = 0; IOParams: TIOParams = nil; ImageIndex: Integer = 0): Boolean;


Description

Allows a TIEBitmap to load any format supported by ImageEn.
If you know the FileType type of the stream, pass it to speed up loading.
You can optionally pass an TIOParams object for the I/O parameters of the file. The index of an image to load within a multiframe format can also be specified.
Returns True if loading was successful, or False on error

Note: Unlike Read, IELoadFromStream will use TIEWicReader for better performance where possible


Example

MyBitmap.IELoadFromStream(MyStream)