TreeMap.getCanvasContext

Syntax

getCanvasContext();

Description

The getCanvasContext method gets canvas rendering context.

Comments

This method returns an object of the following type: CanvasRenderingContext2D.

The canvas element is a part of HTML5 and allows for scriptable rendering of 2D shapes and bitmap images (usually with JavaScript language).

Canvas rendering context is a set of tools used to draw in this canvas.

Example

The example of use is given in the page with description of the CanvasLabel constructor.

Seealso:

TreeMap