Image masking

Lcdrgreg 7 років тому оновлено icahill (Administrator) 7 років тому 2
Do you have some sample wire on image masking with canvas. we are basically trying to create a scratch off feature.
Looks like every time we try to use canvas it crashes fusebox.
It does look like there is a bug with the imagemask property. I will add a bug report and send it to the dev team.

Adding a mask should be just as easy as this:

<panel name="case" alias="CASE" width="100%" height="100%" background="ff0000">
<canvas name="canvas" align="center" valign="center" width="600" height="400" maskimage="graphics/panelBackground1.png" pencolor="f0f0f0" stroke="yes" pensize="30"/>