heitorfr / ios-image-editor

iOS View Controller for image cropping. An alternative to the UIImagePickerController editor with extended features.
MIT License
602 stars 129 forks source link

Rounded corners in the crop view #9

Closed ddaddy closed 10 years ago

ddaddy commented 11 years ago

Would it be possible to make the crop square have rounded corners? I already clip the image's corners, but would like it to be visible to the user where it will be clipped.

Any pointers?

Thanks

heitorfr commented 11 years ago

Hi. I assume at this time you've moved on with your life :) But, for reference, you should be able to do what you want using a mask before drawing the image on the newTransformedImage method: https://developer.apple.com/library/mac/documentation/graphicsimaging/conceptual/drawingwithquartz2d/dq_images/dq_images.html

All the best.