Table of Contents

Method ToBase64String

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

ToBase64String(BitmapType, int?)

Converts this image to a Base64-encoded string in the specified format.

public virtual string ToBase64String(BitmapType bitmapType, int? quality = null)

Parameters

bitmapType BitmapType

The format in which the image should be encoded.

quality int?

The quality of the image encoding. Optional. If not specified, DefaultSaveQuality is used.

Returns

string

A Base64-encoded string representation of the image.