function IELoadFromStream(Stream: TStream; FileType: integer = 0; IOParams: TIOParams = nil; iImageIndex: Integer = 0): Boolean;
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