Declarationfunction LoadFromStream(Stream: TStream; FileFormat: TIOFileType = ioUnknown): Boolean;
Load an image (or multiple image) from the specified stream into the attached TImageEnMView
) or TIEMultiBitmap
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
- Existing content is not
cleared. Call Clear
to remove existing content before loading.
- To abort while loading set Aborting
- LoadFromStream does not reset the position of the stream, so you may need to first call Stream.Position := 0;