+1

Image masking

Lcdrgreg vor 11 Jahren aktualisiert von icahill (Administrator) vor 11 Jahren 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:


<wire>
<main>
<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"/>
</panel>
</main>
</wire>