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
stream
StreamInput stream with image data.
bitmapType
BitmapTypeType 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.
index
intSee description in GenericImage(string?, BitmapType, int)
Returns
- bool
true
if the call succeeded,false
otherwise.
LoadFromStream(Stream, string, int)
Loads an image from an input stream.
bool LoadFromStream(Stream stream, string mimetype, int index = -1)
Parameters
stream
StreamInput stream with image data.
mimetype
stringMIME type string (for example 'image/jpeg').
index
intSee description in GenericImage(string?, BitmapType, int)
Returns
- bool
true
if the call succeeded,false
otherwise.