Hi,
any way to do that?
I tried this:
myMask:clear()
myMask:setFillStyle(Shape.TEXTURE, texture)
myMask:beginPath()
myMask:moveTo(50,0)
myMask:lineTo(100,0)
myMask:lineTo(100,50)
myMask:lineTo(50,50)
myMask:closePath()
myMask:endPath()
It works, but the rest of the image is still "there", but i only want whats inside the mask as a new image.
Cheers!
Comments
can you show a screenshot or something similar explaining how it is now and how you want it?
@ar2rsawseen, The sample above could be used if there is some functionality to be able to position the texture than just use it to fill.
Author of Learn Lua for iOS Game Development from Apress ( http://www.apress.com/9781430246626 )
Cool Vizify Profile at https://www.vizify.com/oz-apps
It should be something like this:
Likes: OZApps
Author of Learn Lua for iOS Game Development from Apress ( http://www.apress.com/9781430246626 )
Cool Vizify Profile at https://www.vizify.com/oz-apps
Author of Learn Lua for iOS Game Development from Apress ( http://www.apress.com/9781430246626 )
Cool Vizify Profile at https://www.vizify.com/oz-apps
@ar2rsawseen
Perfect. Using a matrix was the hint i needed. It works now. Thanks again.
Likes: ar2rsawseen
http://www.rasteredge.com/how-to/vb-net-imaging/crop-image/