-1

In My iPhone application,I want to crop an image.That means i want to select the area that i want from the image and need to crop it.The area of selection can be rectangle,circle..like that.Can anyone help me by giving some code?

Tinjzz
  • 87
  • 1
  • 1
  • 15
  • What have you tried so far? If you're looking to outsource your development, then you've chosen the wrong site. This is for code and programming related questions. Show your code and we can help you with it. – ikuramedia Feb 17 '12 at 11:28
  • You can look at this post. It has all codes you need. http://stackoverflow.com/questions/603907/uiimage-resize-then-crop – Vignesh Feb 17 '12 at 11:29

2 Answers2

0

A component is available from Cocoa Controls : http://cocoacontrols.com/platforms/ios/controls/imagecropper

  • I have already tried these all..But I want something like for example we have a photo in our device.and we want that photo to use for some purpose.so, I want to delete the unnecessary part from it.that i could not mention earlier. – Tinjzz Feb 17 '12 at 13:47
  • Code: https://discussions.apple.com/thread/4063768?start=0&tstart=0 – Abhishek Bedi Dec 06 '12 at 06:16
0

You might find IGFramework useful. It comes in a form of static library and also holds a method for cropping images. As for circle cropping you'll probably have to crop a rectangle and mask with a circle.

Nice tutorial of masking an image is here: How to Mask an Image

John Hoerr
  • 7,955
  • 2
  • 30
  • 40
Rok Jarc
  • 18,765
  • 9
  • 69
  • 124