Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

橡皮擦擦除的内容 #55

Closed
JunWeiAndroid opened this issue Aug 28, 2020 · 1 comment
Closed

橡皮擦擦除的内容 #55

JunWeiAndroid opened this issue Aug 28, 2020 · 1 comment

Comments

@JunWeiAndroid
Copy link

你好,我现在在使用这个库,有一个需求是,橡皮擦擦除时只擦除涂鸦的内容,不能擦除添加的文字、图片等元素。请问这个能实现么,或者有没有什么思路。谢谢

@1993hzw
Copy link
Owner

1993hzw commented Feb 23, 2021

目前橡皮擦的原理是把原图作为画笔底图进行覆盖绘制,跟涂鸦一样,所以要实现你的需求,必须把橡皮擦绘制在涂鸦之上,其他内容之下,这样才不会遮住其他内容。

@1993hzw 1993hzw closed this as completed Feb 23, 2021
@chgmxx chgmxx mentioned this issue Sep 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants