注意:一定要设置imgHead.layer.MasksToBounds=true;
圆角度为UI image view 大小的一半
UIImageView imgHead = new UIImageView ();
imgHead.Frame = new CGRect (0, 0, 50, 50);
this.View.AddSubview (imgHead);
imgHead.Layer.CornerRadius = 25;
imgHead.Layer.MasksToBounds = true;
imgHead.Image = UIImage.FromFile ("Images/headimg.png");