ImageEn, unit iemview

TImageEnMView.SetImageFromStream

TImageEnMView.SetImageFromStream


Declaration

function SetImageFromStream(idx: Integer; Stream: TStream; SourceImageIndex: Integer = 0; FileFormat: TIOFileType = ioUnknown): Boolean;


Description

Loads an image from a stream and assigns it to the TImageEnMView at index, idx.
Use SourceImageIndex to specify the image index if the source file is a multi-frame file (such as a TIFF or AVI).
If FileFormat is ioUnknown the content will be examined to detect the image type.


Example

idx := ImageEnMView1.AppendImage;
ImageEnMView1.SetImageFromStream(idx, stream);


See Also

SetImage
SetImageFromFile