Create an image from stream.
Syntax

[C#]

static XImage FromStream(string inType, Stream inStream);
static XImage FromStream(string inType, Stream inStream, XImageLoadOptions inOptions);

[Visual Basic]

Shared Function FromStream(inType As String, inStream As Stream) As XImage
Shared Function FromStream(inType As String, inStream As Stream, inOptions As XImageLoadOptions) As XImage
Params
Name Description
inType The type of image to be imported (the extension, with or without a leading dot).
inStream The binary data of the image to be imported, as a stream.
inOptions The image load options.
Notes

Use this method when you want to create an XImage from a stream containing encoded image data.

The calling application must set the correct stream position before calling this method as ImageGlue7 will read from the current stream position to its end.

See Also

FromFile

FromData

Example

None.