Open KingWu opened 7 years ago
Thank you! Right now erase-mode it's not supported. Feel free to contribute :)
Would be interested too, seems like a very useful feature :) Is it possible to easily add it with your implementation?
In fact it's very simple to implement: set the stroke color to the background color. @KingWu do you have time to make a PR?
Thank you all for the interest in my library! Yes, it's easiest way, but that may cause future problems if I'll add the option to set a background image (as I'm planning to do in the next release)
Sounds very interesting, any idea how you would do that? Because the only way I can think of is to draw all the paths on a bitmap and use the PorterDuff.Mode.CLEAR mode to erase...
Right now, you're not drawing the paths on a bitmap but directly on the view.
@kojokey Yes, that's the only way I can think of too.. But that means a lot of rework and changes in the code I guess. I'll take a look if I find something else
Hi. I would really need this feature as well. Maybe this can help: https://stackoverflow.com/questions/17197435/trying-to-create-an-eraser-paint-for-canvas
I like your library because it's simple, effective, powerful and lightweight.
Please implement "Eraser" that is very necessary for this library.
Hi, it is nice job. but wanna to know whether support eraser? If not, i feel free to implement it.