1

At present, I am working on core graphics based iPhone application. I have tried to crop center of the image but i can't do that.
Here,I have an images named (fig a) as shown below, and i need to crop it on center of this image. So, the resultant image should look like (fig b).

How can i do this?.

fig a :

enter image description here

fig b :

enter image description here

ggrana
  • 2,335
  • 2
  • 21
  • 31
Magesh
  • 685
  • 2
  • 7
  • 15

2 Answers2

2

Answer :

  1. I think what you want is : iOS UIImage clip to paths. Rob has described how to remove selected part of UIImage using UIBezierPath. You can customize it for yourself to get what you want.
  2. You can also use some View as a Mask above that Central Part.
Community
  • 1
  • 1
Bhavin
  • 27,155
  • 11
  • 55
  • 94
  • Thanks Vin.. I have tried this but no luck.. i could not get the resultant image fig b. Please help me.. – Magesh Jun 27 '13 at 14:23
0

Take a look on BJIMageCropper

Hope This will helps you

Satish Azad
  • 2,302
  • 1
  • 16
  • 35