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. 10.9 Violating Access Control Rule

Hi,

http://java.sun.com/docs/books/jni/download/jni.pdf 10.9 Violating
Access Control Rules.  In jni.pdf it says "It is possible to write
native code to access or modify fields of an object even though doing
so at the Java programming language level would lead to an
IllegalAccessException."  Does this mean that some aspects of Androids
internals can be 'messed with'? or are things like public/private/
protected not used for enforcing security in the framework? And are
the Manifest.permissions checks done in such a way that this is not a
problem?

Thanks

Chris

2. porting to alpine

g'day,
I have interest with porting android on pxa platform compatible my htc alpine.
So, if this is would be not too hard, could you give me alpine
datasheet or something else about specific stuffing of qtek 2020i and
other alpine devices.

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: 

3. MX27 Android porting problems

4. How to send a message or call a function written in audio decoder node from PlayerEngine?

5. libhgl.so and OpenGL ES

6. network redirection on emulator

7. Accounted error when display video frame with surfaceflinger