want to draw over a changing solid-color background

by Rob Y. » Fri, 23 Apr 2010 10:56:32 GMT

Sponsored Links
 I'm trying to draw an animated picture over a background that I want
to shift gradually in color.

The picture is kept in a bitmap, and on each frame, I erase the
background to the new background color and then draw the bitmap on top
of it.  The bitmap was originally cleared to Color.TRANSPARENT, and
that works.  I can see the background color.  But as I animate my
image, each pixel in the bitmap that I 'erase' to Color.TRANSPARENT
seems to remain whatever color it originally was.  Eventually I just
end up with a big blob of color where the moving image should be.

Am I doing something wrong?  How come Color.TRANSPARENT results in
transparency when I use it to drawColor to my bitmap canvas, but not
when I draw with a Color.TRANSPARENT paint to the same canvas?


Other Threads

1. 2.1b [WTI] Desire NexTSense v 2. 0 a Sense - FroYo 2. 2 Official OTA - ( FRF 91 l Fast l 720 p | 2 .09 | AP2 SD + )

Wew, baru semalen donlot yg 2.0a, sekarang udah ada yg 2.1b..

Chagelog 2.1b:
- fixed camera
- fixed setting
- fixed calendar
- fixed market
- fixed youtube
- fixed facebook sync
- support ext4
- changed boot animation
- changed lockscreen
- changed theme colours
- support vpn

Powered by Google with HTC Sense
 > Review menyusul yah

2. tanya : bisakah x10 mini (rooted) install app to sd ?

saya barusan coba app2card v2.1.5, ternyata gak bisa, masih belum support X10MP.

things left unsaid, http://ryosaeba.wordpress.com
maxgain scams, http://maxgain.wordpress.com

"Indonesian Android Community [id-android]" 

3. Multiple concurrent versions of same app, filtered by minSdkVersion?

4. tanya : bisakah x10 mini (rooted) install app to sd ?

5. Question about GPS permissions

6. I want Activity,Service to communicate with Intent.

7. How to store questions for quiz type application