Display Rounded Corner Icon from Downloaded Image

Hello,

I need to display the icons of application in the main screen. The image is downloaded from this address:

http://a3.mzstatic.com/us/r1000/075/Purple/v4/73/33/93/733393c3-9cbf-cffe-87ad-079d9f3effff/mzl.ylmlurzm.53x53-50.jpg

It is icon of the Facebook app. I want to display it with rounded corner like we see it on the iPhone.

How can I display this image with rounded corners ?

I have no problem to display the image but I don’t know how to “crop” the corners.

Thanks for your help,

Olivier [import]uid: 163339 topic_id: 33569 reply_id: 333569[/import]

This is a good use of masks. This should get you started:

http://docs.coronalabs.com/api/library/graphics/newMask.html

[import]uid: 199310 topic_id: 33569 reply_id: 133428[/import]

This is a good use of masks. This should get you started:

http://docs.coronalabs.com/api/library/graphics/newMask.html

[import]uid: 199310 topic_id: 33569 reply_id: 133428[/import]