Search
DomUtils.toDataUrl Method
See Also
Collapse All Expand All Language Filter: All Language Filter: Multiple Language Filter: None Language Filter: C# Language Filter: Visual Basic Language Filter: Java Language Filter: JavaScript Language Filter: C++ Language Filter: XAML
C#
Visual Basic
Java
JavaScript
C++
XAML
Introduction
General Information
What's New In This Release
Version History
Getting Started
Code Completion With VSDoc IntelliSense
Programming Interface Overview
Tutorials
Reference
MindFusion.Common
MindFusion.Common.Collections
MindFusion.Controls
Alignment Enumeration
CancelEventArgs Class
Canvas Class
CanvasControl Class
Control Class
Disposable Class
DomUtils Class
DomUtils Members
DomUtils Methods
formatString Method
getBounds Method
getElementAttributes Method
HTMLtoXHTML Method
loadImageList Method
setBounds Method
setSize Method
toDataUrl Method
EventArgs Class
MouseButton Enumeration
MouseCursors Enumeration
TickPosition Enumeration
ZoomControl Class
MindFusion.Scheduling
Licensing
Online Resources
Technical Support
MindFusion Products

Converts an image to base64 string.

Namespace: MindFusion.Controls
Assembly: DomUtils.js

## Syntax

JavaScript Copy Code
function toDataUrl (url, callback)

### Parameters

url

  String. The url of the image.

callback

  function. The callback function.

### Return Value

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

## See Also

DomUtils Members
DomUtils Class
MindFusion.Controls Namespace