Method ToBase64String
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
BitmapTypeThe 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.