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
- bitmapTypeBitmapType
- The format in which the image should be encoded. 
- qualityint?
- The quality of the image encoding. Optional. If not specified, DefaultSaveQuality is used. 
Returns
- string
- A Base64-encoded string representation of the image.