how can I clear a transparent or translucent canvas

by sebastian » Fri, 13 Mar 2009 01:43:06 GMT


Sponsored Links
 Hi

I am painting some bitmaps onto a transparent canvas, so it is
rendered above the system screen.

When I draw the next bitmap, I cannot clear the previously drawn one.
How can I "erase" it?

If I could capture the initial canvas would be fine...because I could
paint always that before drawing the bitmap...but I am not succedding
on capturing it.

Thanks!

--~--~---------~--~----~------------~-------~--~----~



how can I clear a transparent or translucent canvas

by Eric » Fri, 13 Mar 2009 02:44:03 GMT


 > Just call Canvas.drawColor(0).

That probably won't do much because it uses the default srcover
porterduff mode

Canvas.drawColor( 0, PorterDuff.Mode.CLEAR );

would be better




--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


how can I clear a transparent or translucent canvas

by sebastian » Fri, 13 Mar 2009 16:38:42 GMT


 I worked perfectly fine!

Thanks :)






--~--~---------~--~----~------------~-------~--~----~