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. Which is the best way to store and retrieve email id and password in phone?

Hi all,

I am developing an application which requires to store and retrieve
email id and password because when the user login into the application
he should be directly logged in into the application.

So, which is the best way? Help me.

Thanks.

-- 

2. Best way to start "the Alarm Clock app"?

I'd like to start "the Alarm Clock app" from one of my apps. But
looking at the default Intent categories, I don't see any that defines
an alarm clock. Looking at the packages/apps/AlarmClock I don't see
any specific category in the manifest either.

Is the correct way instead to let the user pick an activity and just
use that? Is there an activity picker somewhere or should I just roll
my own? I didn't see anything obvious at a first glance.

-- 

3. Dear Android Team,

4. Nexus1 owner mo bli ini?

5. call forwarding

6. How to display data in ListView from MySQL not SQLite?

7. Biar Android gak kedinginan