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).
HRESULT toDataURL( BSTR type, VARIANT jpegquality, BSTR *pUrl );
- [in] The standard MIME type for the image format to return. If you do not specify this parameter, the default value is a Portable Network Graphics (PNG) format image.
- [in] The quality level of a JPEG image in the range of 0.0 to 1.0.
- [out, retval] The image data.
Returns one of the following values.
S_OK The operation completed successfully. W3CException_DOM_SECURITY_ERR The origin-clean flag for the canvas is set to FALSE. Typically, the origin or domain is not the same as the canvas element.
Typical values for the type parameter are