For image cropping with UIBezierPath first you need to decide on close path so you put code for free draw. and using that all point you make one UIBezierPath. using that BezierPath we crop image and then we need to resize that image. and finally we get original cropped image. and then we clear image other part by set that cropped image as main image.
Image cropping contains three functionality
1. Free hand image selection for cropping.
2. Crop image according to selection.
3. Clear image cropping.
how to call this function……
Like This you can call
here mainPath is UIBezierPath.
UIImage* tempImage = [self CropImage:mainPath];
Nice tutorial Sir .Thanks for such a good tutorial .
I have one question sir , this method actually giving me very small cropped image , in your code aImageView is which one .I want that image a big one ;
Here we get output image according to original image size if you want big image then u can re-size it, but it getting starched.