-
Notifications
You must be signed in to change notification settings - Fork 72
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
Eraser Mode #2
Comments
Change to use PorterDuffXfermode.
I resolve this problem by the following code.
|
Below code didn't work for eraser. |
O'sum library,just a small problem same as above.Unable to use erase option using MainActivity.this.canvas.setMode(CanvasView.Mode.ERASER); |
In case anyone else is having this problem, a quick fix in my case was calling |
@kthilt can you share the code snippet of your solution? Actually I don't understand where you set alpha to 0.99f. |
@jackmiras I'm setting the alpha for the instance of CanvasView I'm using. For example, in your activity onCreate(), you could do, |
Hey guys I've fixed the problem with erase mode... Check out my pull request or my fork of the project to see how the problem was solved and fix your code if you need. |
@jackmiras , I am having still Eraser issue, canvas getting draw instead of erase. I hope that you can help me for the erasing thing. Rest of it works fine for me. |
@hpdeveloper28 Have you checked my pull request? If not, this is the link to the file that I have changed in the fork that I made from Korilakkuma/CanvasView. |
@jackmiras , thanks a lot, it worked for me. Appreciated. |
@jackmiras , I have one more issue, when I set Background image for CanvasView and I try to erase then Background image getting clear, pleae let me know if you have any solution for the same. |
Hi @hpdeveloper28 I doesn't face this problem because I don't work this much with the project. |
problem: can’t check availability of Undo & Redo (for UI)
hi @jackmiras, I am still not able to erase anything on canvas image, it's drawing eraser with a white background which is not useful while erasing anything on Image. Please suggest me what I need to do to erase draw things on an image? |
Hello @jackmiras your link it is not work |
Hi, Eraser is not done correctly what actually does is just paint with a white color.
The text was updated successfully, but these errors were encountered: