# Canvas

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

New in Analytica 5.0

## Canvas( width, height, bgColor )

Create a canvas for drawing an image. See Drawing images.

«Width» and «height» specify the size of the canvas in pixels. The optional «bgColor» specifies the background color and can be a color integer or color name -- see Color parameters (default is 'White').

The result is a canvas object, which can then be drawn to by various CanvasDraw*() functions. To obtain a image that can be displayed, you must call CanvasImage. See Drawing images.