Table of Contents

Method SaveToStream

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

SaveToStream(Stream, string)

Saves an image in the given stream.

bool SaveToStream(Stream stream, string mimetype)

Parameters

stream Stream

Output stream.

mimetype string

MIME type string (for example 'image/jpeg').

Returns

bool

true if the call succeeded, false otherwise.

SaveToStream(Stream, BitmapType)

Saves an image in the given stream.

bool SaveToStream(Stream stream, BitmapType type)

Parameters

stream Stream

Output stream

type BitmapType

Returns

bool

true if the call succeeded, false otherwise.