In MonoTouch (and iOS itself) it's not something you can do on UIImage itself. However you can do this on UIImageView by manipulating its Layer property.
See this answer for an Objective-C example that would be simple to convert to C#.
You can do this if you create a CGContext to render into with the same size as the original image, then add a clipping path with the rounded corners and rendering your original UIImage.
Then you can pull the UIImage out of the CGContext.
Another option is to avoid the intermediate step, is to push the graphics state in your context drawing, add the rounded path as a clipping path, draw the image and then pop the graphics state to go back to this.
You can see how TweetStation uses this for its Glass Buttons:
In MonoTouch (and iOS itself) it's not something you can do on
UIImage
itself. However you can do this onUIImageView
by manipulating itsLayer
property.See this answer for an Objective-C example that would be simple to convert to C#.
I also suggest you the following tutorial on introduction-to-calayers-tutorial. It covers interesting stuffs on customizing layers in iOS.
Hope it helps.
Here is a nice code helper for MonoTouch users looking for a quick helper function. Tweeked code came from the Excellent Xamarin.com site:
Rounding a UIImage would produce another UIImage.
You can do this if you create a CGContext to render into with the same size as the original image, then add a clipping path with the rounded corners and rendering your original UIImage.
Then you can pull the UIImage out of the CGContext.
Another option is to avoid the intermediate step, is to push the graphics state in your context drawing, add the rounded path as a clipping path, draw the image and then pop the graphics state to go back to this.
You can see how TweetStation uses this for its Glass Buttons:
https://github.com/migueldeicaza/MonoTouch.Dialog/blob/master/MonoTouch.Dialog/Utilities/GlassButton.cs#L76
Based on BahaiResearch.com answer I've made another method for non-square images and a roundness percentage instead of a literal radius.
I'm not sure if it will produce ellipsis correctly. So I'll appreciate if some one can test or even improve this method.