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. Catch HTTP error code with WebView

Is there a method to catch HTTP error codes with a WebView?
Because my goal is to capture a 401 code but nothing happen with

Thanks for your answers!


2. Galaxy Spica SIM card problems

selamat siang rekan2,

saya baru pegang android nih, cuma ada problem.
galaxy spica saya tidak bisa dipasangkan dengan SIM card INDOSAT (IM2 dan
baik dengan OS ver 1.5 maupun setelah diupgrade ke 2.1.
jika dipasangakan dengan SIM card TELKOMSEL dan 3 bisa.

saya memang tidak membeli secara bundling.
kira2 problem ada di SIM card atau firmware?

saya pernah punya pengalaman dulu di PDA HTC, akhirnya ganti SIM card di
INDOSat dengan vendor berbeda dan solving.

mohon bantuannya rekan2

terima kasih

"Indonesian Android Community [id-android]" 

3. Mau Tanya Cara Upgrade Recovery : dari "recovery-RA-hero-v1.5.3.1.img" MENUJU "recovery-RA-hero-v1.6.2.img". Minta Bantuannya dong...

4. Bateray Nexus One boros setelah root dan download aplikas

5. Androidan di SING

6. Confused about application context

7. write/read log files in res folder