开发者

Masking NsImageView

开发者 https://www.devze.com 2023-01-14 17:14 出处:网络
How would I be able to mask an nsimageview in objective c?For example开发者_如何学C, having an nsimageview with rounded corners.You don\'t. If you want to draw an image in a way that NSImageView doesn

How would I be able to mask an nsimageview in objective c? For example开发者_如何学C, having an nsimageview with rounded corners.


You don't. If you want to draw an image in a way that NSImageView doesn't support, you'll need to make your own view to draw it.

The only other way would be to mask the image itself before passing it off to the image view.

0

精彩评论

暂无评论...
验证码 换一张
取 消