Gamalto

Fork me on GitHub

Object Canvas2D Overview

Gamalto. Canvas2D

new Gamalto.Canvas2D(width, height)

Creates a canvas based on the W3C Canvas 2D API.

Parameters
Name Type Description
width number

Width of the canvas in pixels.

height number

Height of the canvas in pixels.

Extends

Members

canvas :object

inherited readonly

Internal canvas object.

Inherited From

tag :object

inherited

Utility property to exchange data between objects.

Inherited From

Methods

clone() object

inherited abstract

Clones the object. It will be shallow copy unless otherwise specfied.

Inherited From
Returns
  • New instance of the object. Defaults to null.

createRenderer() Gamalto.Renderer2D

override

Creates a renderer for the current canvas type.

Overrides
Returns
  • Object instance.

toString() string

inherited abstract

Converts the object into a string.

Inherited From
Returns
  • string

Documentation generated by JSDoc 3.3.2 on Sun Sep 13 2015 20:13:31 GMT+0200 (CEST)