RasterGraphics( parent, width, height [, bgcolor] )

Implements a graphic canvas for drawing basic shapes.

Parameters

Name Type   Description
parent object One of the following: a string containing the ID of a DOM element, a reference to a DOM element, or another control object. If this argument is null, the control is created but not attached to the DOM tree; RasterControl.setParent() may be invoked later to specify the parent control.
width number width in pixels.
height number height in pixels.
bgcolor string optional A valid html color or RGB value in the format #RRGGBB or #RGB. For a transparent background, omit or set this argument to null.
Home Examples Download License
 
Copyright © 2010-2017 Edwin R. López