Table of Contents

Method LoadFromStream

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

LoadFromStream(Stream)

Loads image from stream.

public abstract bool LoadFromStream(Stream stream)

Parameters

stream Stream

Stream with image data.

Returns

bool

LoadFromStream(Stream, BitmapType)

Loads an image from an input stream.

public virtual bool LoadFromStream(Stream stream, BitmapType type)

Parameters

stream Stream

The Stream from where the image will be loaded.

type BitmapType

One of the BitmapType values

Returns

bool

true if the operation succeeded, false otherwise.

Remarks

Note: Not all values of BitmapType enumeration may be supported by the library and operating system for the load operation.