I have an image that is 1000 pixles tall. I would like to keep it this size, but only show 100 pixles of the 1000. I would assume there is way to do this but I can’t seem to find it.
One way to do it is with a mask. Following is code used to set a mask on an image:
[lua]
local mask = graphics.newMask(“100x100mask.png”)
photo:setMask(mask)
[/lua]
There’s some rules about masks, so make sure to check the API docs.
Agreed, and here’s a link to the API docs on masking:
http://docs.coronalabs.com/api/library/graphics/newMask.html
One way to do it is with a mask. Following is code used to set a mask on an image:
[lua]
local mask = graphics.newMask(“100x100mask.png”)
photo:setMask(mask)
[/lua]
There’s some rules about masks, so make sure to check the API docs.
Agreed, and here’s a link to the API docs on masking:
http://docs.coronalabs.com/api/library/graphics/newMask.html