CreateFromStream(Stream: IIOStream);
CreateFromStream(Stream: System.IO.Stream);
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.
Imports System.IO;
Imports Prognoz.Platform.Interop.Drawing;
Function GetImageFromStream(ImageStream: Stream): GxImage;
Var
Img: GxImage;
Begin
If ImageStream.Length <> 0 Then
Img := New GxImageClass_2();
Img.CreateFromStream(ImageStream);
Return Img;
Else
Return Null;
End If;
End Function;
The function returns the image obtained from the stream specified as an input parameter.
See also: