如何在圆内使用网格裁剪圆形状的图像 [英] How to Crop image in Circle Shape with Grid inside Circle
问题描述
在我的社交媒体应用中,我想要图像裁剪功能,即Circle形状的Crop图像加上在Circle内具有网格.
In my Social media app i want image Cropping Functionality, that Crop image in Circle shape plus have Grid inside Circle.
我已经检查过TOCropViewController.但是Grid没有选项. https://github.com/TimOliver/TOCropViewController
I have Already Checked TOCropViewController.but there is no option for Grid. https://github.com/TimOliver/TOCropViewController
推荐答案
我找到了一个解决方案,我们可以在CropView中使用UIGraphicsGetCurrentContext并使用addEllipse方法在CropView中绘制Circle.
I find one solution , we can use UIGraphicsGetCurrentContext in CropView and use addEllipse method to draw Circle inside CropView.
这是解决方案的链接. https://github.com/bhaveshbc/CircleCropView
this is link For Solution. https://github.com/bhaveshbc/CircleCropView
这篇关于如何在圆内使用网格裁剪圆形状的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!