msToBlob method
Returns a blob object encoded as a Portable Network Graphics (PNG) format from a canvas image or drawing.
![]() |
Syntax
var pngImageBlob = Canvas.msToBlob();Parameters
- pngImageBlob [out, retval]
-
Type: Blob
The canvas element encoded in PNG format as a blob object.
Return value
Type: Blob
The canvas element encoded in PNG format as a blob object.
Exceptions
| Exception | Condition |
|---|---|
|
The image is not of the same origin or domain as the destination. Versions prior to Internet Explorer 10 will return DOMException.SECURITY_ERR. |
See also
Show:
