TImageEnMView.SetImageFromStream
Declaration
function SetImageFromStream(Index: Integer; Stream: TStream; SourceImageIndex: Integer = 0; FileType: TIOFileType = ioUnknown): Boolean;
Description
Loads an image from a stream and assigns it to the TImageEnMView at
Index.
Use SourceImageIndex to specify the image index if the source file is a multi-frame file (such as a TIFF or AVI).
FileType specifies the
file format of the image. If
ioUnknown is specified, the format is detected automatically by reading the image header (using
FindStreamFormat).
Example
// Set image from stream
Index := ImageEnMView1.AppendImage();
ImageEnMView1.SetImageFromStream(Index, stream);
See Also
◼SetImage
◼SetImageFromFile