可能重复:
How do I implement a soft eraser stroke in a CGBitmapContext
How can I erase UIBezierPath lines drawn on a transparent view above an image?
在我的绘图应用程序中,我想实现橡皮擦功能。
如果我有白色背景,我将擦除,将颜色更改为白色。
但是,如果我必须用照片擦除背景上的绘图,我该怎么做?
我该怎么做?
答案 0 :(得分:1)
我相信有很多可能的解决方案。其中之一:
此外,你可以使用混合选项来玩面具 - 我认为这些功能中的每一个都可以让你实现“橡皮擦”功能。