Difference between revisions of "Canvas"
(Created page with "''New in Analytica 5.0'' == Canvas( width, height'', bgColor'' ) == See Drawing images. == See Also == * Drawing images * CanvasImage * CanvasContext *...") |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | [[Category:Image and canvas functions]] | ||
+ | |||
''New in [[Analytica 5.0]]'' | ''New in [[Analytica 5.0]]'' | ||
== Canvas( width, height'', bgColor'' ) == | == Canvas( width, height'', bgColor'' ) == | ||
− | See [[Drawing images]]. | + | 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 <code>CanvasDraw*</code>() functions. To obtain a image that can be displayed, you must call [[CanvasImage]]. See [[Drawing images]]. | ||
== See Also == | == See Also == | ||
Line 10: | Line 16: | ||
* [[CanvasImage]] | * [[CanvasImage]] | ||
* [[CanvasContext]] | * [[CanvasContext]] | ||
− | * [[CanvasDrawImage]], [[CanvasDrawLine]], [[CanvasDrawEllipse]], [[CanvasDrawText]] | + | * [[CanvasDrawImage]], [[CanvasDrawLine]], [[CanvasDrawEllipse]], [[CanvasDrawText]], [[CanvasDrawPolygon]] |
Latest revision as of 00:45, 3 June 2017
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.
See Also
Comments
Enable comment auto-refresher