In my game there is a screen where the player has to select an area of an image. The selected area will eventually become a CCSprite.
So far I have implemented this by displaying the original image, then overlaying a semi-transparent mask and using opengl to dynamically "cut" a circular hole through the mask. The user can move and resize the circle. Once positioned the highlighted part of the original image is my selected region. I'm new to opengl so this took a while to get working ;-)
I have it working up to here. What I need help with is how to take the selected region of the original image to make a new image? I know the center coordinate of the circular area, and I know the radius, so I should be able to use this information achieve my goal...
any help much appreciated!