Object: HTMLCanvasElement
|
Availability
|
BlackBerry®
Device Software 6.0 or later
|
|
Extends
|
HTMLElement
|
The
HTMLCanvasElement object represents a
<canvas> element in an HTML document.
Properties
|
Property name
|
Type
|
Description
|
Status
|
Support level
|
Availability
|
|
height
|
int
|
Specifies the height of the canvas.
|
writable
|
HTML 5
|
6.0 or later
|
|
width
|
int
|
Specifies the width of the canvas.
|
writable
|
HTML 5
|
6.0 or later
|
HTMLCanvasElement methods
|
Method name
|
Description
|
Support level
|
Availability
|
|
getContext()
|
Returns reference to a context in .
|
HTML 5
|
6.0 or later
|
|
toDataURL()
|
Saves the content of the canvas to a URL.
|
HTML 5
|
6.0 or later
|
Was this information helpful? Send us your comments.