image - Android Paint PorterDuff.Mode.CLEAR drawing black color on my view -


I want to implement Eraser for my painting app. I can delete the following code from

  paint.setColor (0x00000000); Paint.setAlpha (0x00);   

But when you start painting again, it does not paint properly, so that any ideas get rid of paint.

Try the code below.

  Paint .Set Alpha (0xFF); // Transparent color paint. See xformode (new porterdaf xformode (porterdaf.mod.clear); // draw /   

See sample fingerprint java in API demo under folder graphics.

  setAlpha (Int a)   

To set Helper to Color (), which specifies only the alpha value of color, its R, G, B By leaving the value unchanged.

See a document.

Edit:

Also check



Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -