2

I am building a photo sharing app for iOS 5 and I'd like to enable users to trace around some portion of an image and then crop out that selected region. I've looked all around for how to do this, and everyone seems to assume you are trying to crop out rectangular areas. Is there a way to do it for a non-rectangular area?

Wesley Tansey
  • 4,555
  • 10
  • 42
  • 69

2 Answers2

1

This answer shows how to copy an image using a path. The answer adds a rectangle to the path, so you would instead add all of the line segments traced out by the user to your path.

Community
  • 1
  • 1
MusiGenesis
  • 74,184
  • 40
  • 190
  • 334
0

I made this cropping tool which fits your need. It gives the user control on the area to crop.

https://github.com/nicholjs/BFCropInterface

nicholjs
  • 1,762
  • 18
  • 30