I have been creating a 2d game with surface view.
My tileset images have a transparent color and not alpha.
However I do have sprites that all have alpha transparency.
My tilesets are under directories so they are in the assets so they
are not described by xml.
I would like to convert my tileset images from having a transparent
color to having alpha so all my images are using alpha.
The only way I've been able to do this is to get  the pixels from the
original image, create a new image with an alpha channel, then loop
through each pixel looking for the transparent color and replacing it
with alpha.
It seems like I should be able to use PorterDuff but I've tried every
option I can think of an none work right.  I either get nothing in the
image or the image without the transparent color changed to alpha.
This seems like it should be easier but I can't find any examples or
seem to get it right.

Shawn

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to