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. HOW TO UNINSTALL ANDROID DEFAULT APPLICATION

Hello,

For professional use, I need to uninstall default application (camera,
browser, etc...).
It seems not to be possible via the application manager.
Is there a way to do it?

Thanks

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

2. Kloteran HTC Hero+Samsung Galaxy+3GS FU BNIB

Mods, permisi numpang jalum lagi ya...
Sebelumnya mo ngucapin met lebaran bagi yg merayakannya. Mohon maap lahir dan 
batin... :)

Setelah sukses dengan kloteran2 sebelumnya. Mau coba buka partai yang kesekian 
kalinya (lupa :D).
 
Kali aja ada yg mau ikut Kloteran untuk Gadget2 berikut ini:

1). iPhone 3G[S], 16GB dan 32GB
- BNIB 100% 
- FU HK
- Warna B/W
- Warranty Apple 1 Year
- Limited Quantity 
Price* =  16GB = 9,1jt dan 32GB = 10,1jt. Dapatkan harga khusus bagi yg 
pre-order.
 
2). HTC Hero Android
- BNIB 100%
- Factory Unlocked
- Warna Black, White dan Brown
- BM
- Limited Stock
Price = 7jt

3). Samsung Galaxy i7500 Android
- Brg harus Inden*
- BNIB 100%
- Factory Unlocked
- Very Limited Stock !!!
- Price* = Japri ! (Clue: diatas HTC Hero)

Notes:
- Pre-order tutup tgl 23 Sept.
- Semua item, ETA tgl 24/25 Sept.
- Yang mau titip aksesoris buat Hero dan Magic juga boleh japri kalau mau 
tanya2.
- Btw, mohon dg sangat jangan japri ke email ini ya...

Thanks for jalumnya Mods... 
 
*=Terms and Condition apply. 
 
Rgds, 
"M" 
mey...@xl.blackberry.com
twitter: meykel | GTalk & Email: tanya.mey...@gmail.com | YM: mikey4nancy |
Kirim 'masih' pake BerryHitam. Next time pake HTC Hero G2...! :))
--~--~---------~--~----~------------~-------~--~----~
Google Groups "Indonesian Android Community [id-android]" group.

To post to this group, send email to id-android@googlegroups.com

To request to subscribe to this group, please visit the following page:
 

3. Who's NYC?

4. OnItemClickListener onItemClick in custom adapter not firing

5. make my own libraries

6. How to add entry (pointing to Activity) to 鈥淗ome Screen -> Menu -> Add -> Shortcu ts鈥?

7. How to add entry (pointing to A ctivity) to 鈥淗ome Screen -> Menu -> Add -> Shortcuts鈥?