ImageEn, unit iemio

TImageEnMIO.LoadFromStream

TImageEnMIO.LoadFromStream


Declaration

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


Description

Load an image (or multiple image) from the specified stream into the attached TImageEnMView (at SelectedImage) or TIEMultiBitmap.
If FileFormat is ioUnknown the file format is detected by reading the image header (using FindStreamFormat).
The result will be false if an error is encountered, e.g. the file in the stream is not a recognized format (Aborting will be true).

Note:
AVI is not supported
Existing content is not cleared. Call Clear to remove existing content before loading.
To abort while loading set Aborting to true
LoadFromStream does not reset the position of the stream, so you may need to first call Stream.Position := 0;


See Also

LoadFromFile