This topic has not yet been rated - Rate this topic

toDataURL method

Returns the content of the current canvas as an image that you can use as a source for another canvas or an HTML element (such as img).

HTML5 A vocabulary and associated APIs for HTML and XHTML, Section 4.8.10Internet Explorer 9

Syntax


string
           retVal = object.toDataURL(type, jpegquality);

Parameters

type [in, optional]

Type: string

The standard MIME type for the image format to return. If you do not specify this parameter, the default value is a PNG format image.

jpegquality [in, optional]

Type: string

The quality level of a JPEG image in the range of 0.0 to 1.0.

Standards information

Remarks

Typical values for the type parameter are image/png or image/jpg.

 

 

Build date: 11/12/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.