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+

width

int

Specifies the width of the canvas.

writable

HTML 5

6.0+

Methods

Method name

Description

Support level

Availability

getContext()

Returns a new object that exposes an API for drawing on the canvas, such as a CanvasRenderingContext2D object.

HTML 5

6.0+

toDataURL()

Saves the content of the canvas to a URL.

HTML 5

6.0+

Last modified: 2014-03-10



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus