ImageEn, unit iexBitmaps

TIEMultiBitmap.LoadFromStream

TIEMultiBitmap.LoadFromStream

Declaration

function LoadFromStream(Stream: TStream; FileType: TIOFileType = ioUnknown): Boolean;

Description

Load an image from a stream (including all its frames) of any format supported by the TImageEnMIO class.
FileType specifies the file format of the image. If ioUnknown is specified, the format is detected automatically by reading the image header (using FindStreamFormat).

Returns False on failure.

Note:
Do not use LoadFromStream() in IsVirtual mode
Alternatively, you can use the loading methods of MIO
For legacy reasons, LoadFromStream() is an alias of Read()

Example

if multiBitmap.LoadFromStream( ms ) then
  ShowMessage('Load OK');

See Also

LoadFromFile
LoadFromStream
SaveToFile
MIO