Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

arnieterm

macrumors regular
Original poster
Aug 28, 2008
201
0
In my iphone app, after selecting an image from iphone photo library, I am be able to resize the returned image to 60X60 but I need to make that image rounded cornered. How can we do it?
As I have to save the rounded cornered and resized image only.
Thanks
Arnieterm
 

arnieterm

macrumors regular
Original poster
Aug 28, 2008
201
0
Can you suggest a sample code for this as I am not familiar with iphone much
Thanks
Arnieterm
 

johnnyjibbs

macrumors 68030
Sep 18, 2003
2,964
122
London, UK
Can you suggest a sample code for this as I am not familiar with iphone much
Thanks
Arnieterm
Try reading the 2D Graphics and Animation Guide (or something like that) on the Apple iPhone developer website - it shows you how to use the simple Core Graphics commands to draw lines and arcs (for rounded rectangles).

If I get a chance, next time I'm at my Mac I'll post some example code of how to draw a rounded rectangle path, then you just need to fill with the image you want.
 

Yogachitra

macrumors newbie
Jun 26, 2009
3
0
Resize image

Hi arnieterm,

Could you please tell me how did you resize image to 60 x 60? I could not achieve that...

Thanks in advance..

Yoga.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.