如何在圆形内裁剪带有网格的圆形图像 [英] How to Crop image in Circle Shape with Grid inside Circle

查看:11
本文介绍了如何在圆形内裁剪带有网格的圆形图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的社交媒体应用程序中,我想要图像裁剪功能,圆形形状的裁剪图像加上圆圈内的网格.

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

这篇关于如何在圆形内裁剪带有网格的圆形图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆