0

I have an app where I take a photo, then zoom/rotate the photo. How can I crop the result to the screen's frame?

For example, say I am displaying a photo that is 1000px x 1000px. If I zoom in and rotate a bit, I want the resulting UIImage to be... say 800px x 800px (not 320x320). How can I accomplish this? If I use CGImageCreateWithImageInRect and pass in the UIImageView's rect, I get a super-zoomed, small corner of the image.

user1007895
  • 3,925
  • 11
  • 41
  • 63
  • Search github, something like https://github.com/genkikondo/GKImagePicker – Wain Mar 17 '14 at 16:33
  • possible duplicate of [How do you crop an image in iOS](http://stackoverflow.com/questions/10079701/how-do-you-crop-an-image-in-ios) – Mika Mar 17 '14 at 16:37

0 Answers0