Icon ConvertToDataURL Method

function ConvertToDataURL(const ImageType: String; ImageQuality:
      Integer=100): String

Available In: Visual Client Applications

Use this method to convert the contents of the canvas to an image represented as a Base64-encoded data URL string. Use the ImageType parameter to specify the image format via its MIME type, and the ImageQuality parameter to indicate the image quality for formats that support the specification of the image quality, such as the JPEG format.

Information Currently, most web browsers only support 'image/png' or 'image/jpeg' as the ImageType parameter. Please consult the web browser documentation on whether additional formats are supported in a specific browser.
Image