CreateFromStream(Stream: IIOStream);
Stream. The stream that contains the graphic image.
The CreateFromStream constructor creates a new image from contents of the stream passed by the Stream parameter.
Function GetImageFromStream(ImgStream: IIOStream): IGxImage;
Var
Img: IGxImage;
Begin
If ImgStream.Size <> 0 Then
Img := New GxImage.CreateFromStream(ImgStream);
Return Img;
Else
Return Null;
End If;
End Function GetImageFromStream;
The function returns the image obtained from the stream specified as an input parameter.
See also: