iPhone - How do you make a resizable rectangle for cropping images?

Posted by 0SX on Stack Overflow See other posts from Stack Overflow or by 0SX
Published on 2009-12-28T21:01:29Z Indexed on 2010/03/29 15:03 UTC
Read the original article Hit count: 1121

Hi everyone, I'm having a trouble making a re-sizable rectangle for cropping my images. I'm trying to achieve something like this picture:

http://img192.imageshack.us/img192/8930/customcropbox.jpg

Well, the only problem is I have no clue where to actually start. I need some advice to how I can achieve this effect of cropping. What documentation should I read up on? Core Graphics or Quartz 2d? Both? I've been coding for the iPhone since it's release date but I've never actually used core graphics and etc. Any help or advice would be much appreciated. I'll throw my code up here as I progress to show how it's done when I achieve it. :-) Also, this rectangular box is moveable across the screen in a UIImageView which just makes it more interesting. Thanks for the help and I look forward to achieving this goal.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about crop