How can I make certain pixels of an DrawableBitmap transparent?
+1
A:
Android supports transparency on PNG files. So convert your bitmap to a PNG using an editor like GIMP and the work's done for you.
Ally
2010-01-04 18:42:06
I have to do this programmatically. I do not know the images to advance.
Arutha
2010-01-05 08:43:58
A:
You can try to change the underlying Bitmap (if it is mutable) pixel with the setPixel method.
david
2010-01-04 21:15:50
it may be a very long and expensive. There is not a filtering system that makes it ?
Arutha
2010-01-05 08:45:19
Depends on how pixels in the image you want to change at every frame.What is the underlying bitmap size? How much of it do you want to change? 1% 10% 50%?There are many filtering classes in android.graphics but they do not operate on pixel basis.
david
2010-01-05 21:09:27