简体   繁体   English

您如何找到uiimage的大小/矩形?

[英]How do you find the size/rect of a uiimage?

I have a UIImageView that has a UIImage (obviously), and I want to get the dimensions of the UIImage so that I can draw a border with rounded edges for just the UIImage (not the entire UIImageView). 我有一个具有UIImage的UIImageView(很明显),并且我想获取UIImage的尺寸,以便可以为UIImage(而不是整个UIImageView)绘制带有圆角边缘的边框。 Thanks. 谢谢。

UIImage具有-size属性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM