ImageEn, unit iemio




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


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).

- AVI is not supported
- Existing content is not cleared
- You can abort loading by setting 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