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 the PmgObject
: Object name changed: PmiCanvas
: Fixed bug
: The read value of the color (for example of 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
" tab 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
: Allows free drawing
) into the are of this object. This object is "revolutionary" in the sense that it gives the application designer a free tool for creation of own graphic. The drawing algorithm may be dependant on item variables and this way change colors, shapes, ... based on the variables in the application.
There are also some handy preconfigurations prepared for this object, that demonstrate its capabilities.