MindFusion.Charting for JavaScript Programmer's Guide
DomUtils.toDataUrl Method
See Also
 






Converts an image to base64 string.

Namespace: MindFusion.Controls
File: DomUtils.js

 Syntax

JavaScript  Copy Code

function toDataUrl (url, callback)

 Parameters

url

Type: String
String. The url of the image.

callback

Type: function
function. The callback function.

 Return Value

Type: String
String. The base64-encoded string, representing the image.

 See Also

DomUtils Members
DomUtils Class
MindFusion.Controls Namespace