Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
How to crop some region of image in Gideros? — Gideros Forum

How to crop some region of image in Gideros?

wretchwretch Member
edited May 2013 in General questions
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

Sign In or Register to comment.