Method LoadFromStream
LoadFromStream(Stream, BitmapType, int)
Loads an image from an input stream.
bool LoadFromStream(Stream stream, BitmapType bitmapType = BitmapType.Any, int index = -1)
Parameters
streamStreamInput stream with image data.
bitmapTypeBitmapTypeType of the bitmap. Depending on how library and OS has been configured and by which handlers have been loaded, not all formats may be available. If value is Any, function will try to autodetect the format.
indexintSee description in GenericImage(string?, BitmapType, int)
Returns
- bool
trueif the call succeeded,falseotherwise.
LoadFromStream(Stream, string, int)
Loads an image from an input stream.
bool LoadFromStream(Stream stream, string mimetype, int index = -1)
Parameters
streamStreamInput stream with image data.
mimetypestringindexintSee description in GenericImage(string?, BitmapType, int)
Returns
- bool
trueif the call succeeded,falseotherwise.