I’m playing with image masks at the moment, but having some issues once I get it onto an android device.
Here is the code I’m using:-
--A test rect to see if mask is working properly
display.newRect(0,0,200,200)
image = display.newImage("row.jpg")
mask = graphics.newMask("mask.jpg")
image:setMask(mask)
You can see how it looks here http://imstevil.com/corona/simulator.png which is correct
But on android it’s showing like this http://imstevil.com/corona/phone.png
The mask has been rotated and scaled and tiled it looks like. The images themselves load correctly if I load them both as images but don’t use the mask.
You can see the images I have used here:-
http://imstevil.com/corona/row.jpg
http://imstevil.com/corona/mask.jpg
I understand I could just make the them transparent PNGs which would work correctly, but I’m toying with a few ideas which wouldn’t work that way.
Is this possibly a bug? I’m not to sure it would be an issue with code when I know it works on the simulator, but I can’t find anything in google or the forums with anyone having a similar problem… I find it hard to imagine people wouldn’t have come across this problem already which makes me think I’m possibly doing something wrong.
Any help / advice people can give me on this, it would be greatly appreciated!
Stevil [import]uid: 133056 topic_id: 31344 reply_id: 331344[/import]
[import]uid: 9422 topic_id: 31344 reply_id: 125309[/import]