Declaration
function LoadFromStream(Stream: TStream; FileType: TIOFileType = ioUnknown): Boolean;
Description
Load an image from a stream (of any format supported by the
TImageEnIO class).
You can optionally specify the
Format of the image. If it is not specified, ImageEn will determine the file type automatically (by the content).
Result will be
False if the file is not a recognized file type. Other errors will raise an exception.
Note:
◼Alternatively, you can use the loading methods of
IO
◼For legacy reasons, LoadFromStream() is an alias of Read()
Example
if ImageEnView1.IEBitmap.LoadFromStream( ms ) then
ShowMessage('Load OK');
See Also
◼LoadFromFile
◼LoadFromBuffer
◼Filename
◼WicFastLoading
◼IO