gpt4 book ai didi

ios - 如何使 UIImage 填充不规则形状?

转载 作者:行者123 更新时间:2023-12-01 16:25:42 24 4
gpt4 key购买 nike

我想给 UIImage 填充一个不规则的区域,不是裁剪,不是蒙版。使图像变形。

我该怎么办 ?使用 CoreImage?

enter image description here

最佳答案

UIImageView s 是矩形的。我认为您可以通过在其轴上旋转框架来完成此操作。您将使用 CABasicAnimation .由于您的问题相当笼统,我无法给出具体答案,但我会向您指出这个方向。

http://radar.oreilly.com/2013/07/rotating-a-uiview-in-3d.html

关于ios - 如何使 UIImage 填充不规则形状?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35496051/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com