gpt4 book ai didi

ios - 如何使用圆内网格裁剪圆形图像

转载 作者:可可西里 更新时间:2023-11-01 01:08:04 25 4
gpt4 key购买 nike

在我的社交媒体应用程序中,我想要图像裁剪功能,圆形形状的裁剪图像加上圆内有网格。 enter image description here

我已经检查了 TOCropViewController。但是没有 Grid 选项。 https://github.com/TimOliver/TOCropViewController

最佳答案

我找到了一个解决方案,我们可以在 CropView 中使用 UIGraphicsGetCurrentContext 并使用 addEllipse 方法在 CropView 中绘制 Circle。

这是解决方案的链接。 https://github.com/bhaveshbc/CircleCropView

关于ios - 如何使用圆内网格裁剪圆形图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53248609/

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