Object PmgCanvas (Drawing canvas)
See: PmgCanvas - Deatiled object description
) in the onDraw
event and by using the methods and properties of the CanvasCtx
drawing area (eventually by extension object CanvasCtxExt
). It allows to draw simple images (for example icons), but also complex animated graphics (animated meters, etc.).
This object adopts properties and methods of object PmgObject
: Object name changed: PmiCanvas
: Fixed bug
: The read value of the color (for example the strokeStyle
property) was incorrect.
: Fixed bug
: Memory decrease occured if methods save
were not called correctly (not in pair).
: New simple drawing tool
has been created. This way it is possible to draw the canvas object and the editor then transforms it to script.
This tool will be developed further in future versions in order to provide more graphic functions and also to read and render canvas scripts.
The canvas drawing tool can now be opened from following locations:
- On the "Draw
" page it is now possible to create assistant methods for drawing
. In the onDraw
event it is no longer neede to write the whole drawing script, but assistant methods can be called. This way the drawing script becomes much simpler.
- New CanvasCtxExt object
for drawing. This object adds the functions of deformation rotation transformations. This object Objekt can be accessed via the pEvent.CtxExt