CreateFromStream(Stream: IIOStream);
Stream. The stream that contains a bitmap.
The CreateFromStream constructor creates a new bitmap from the stream contents that is passed by the Stream parameter.
Function GetBmpFromStream(BmpStream: IIOStream): IGxBitmap;
Var
Bmp: IGxBitmap;
Begin
If BmpStream.Size <> 0 Then
Bmp := New GxBitmap.CreateFromStream(BmpStream);
Return Bmp;
Else
Return Null;
End If;
End Function GetBmpFromStream;
The function returns the image obtained from the stream, which is specified as an input parameter.
See also: