Making Overlaid image transparent on touch in Android ?

Posted by Andhravaala on Stack Overflow See other posts from Stack Overflow or by Andhravaala
Published on 2010-06-11T08:43:51Z Indexed on 2010/06/11 12:03 UTC
Read the original article Hit count: 247

Hi All, I need help on making the touched areas of bitmap image transparent(seems like erasing) while I am moving my finger on that image.

I am having a PNG file with Alpha channel in it. I want to turn the touched pixels to transparent so that, the user can feel that he is actually erasing it.

For this I am using frame layout to load 2 layers. Down layer is for content and upper layer is an Imageview for erasing. I need erase the upper layer when user touch and move his finger on it.

I am not getting how to make it transparent. can anyone please help me in this. If possible please direct me to any sample code, as I am very new to this image processing.

Thanks in advance.

© Stack Overflow or respective owner

Related posts about android

Related posts about image-processing