Magesh
Magesh

Reputation: 685

Crop center of the UIImage

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

Upvotes: 1

Views: 645

Answers (2)

Satish Azad
Satish Azad

Reputation: 2312

Take a look on BJIMageCropper

Hope This will helps you

Upvotes: 0

Bhavin
Bhavin

Reputation: 27225

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.

Upvotes: 2

Related Questions