Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Round the corners of an image

Is there a way of rounding the corners of an image that I placing in an imageview?

like image 241
TheLearner Avatar asked Jun 29 '10 15:06

TheLearner


People also ask

How do I round the corners of an image online?

Free online tool to make round corner image in a simple steps. Drop image in tool, set the corner radius in slider, then click Round corner button to process the image. Once process completed, preview of round corner image is displayed along with download button.


1 Answers

theImageView.layer.cornerRadius = 12;

might also need

theImageView.layer.masksToBounds = YES;
like image 60
drawnonward Avatar answered Sep 18 '22 00:09

drawnonward