Search code examples
androidbitmappaintcolormatrix

How to Change the Color of bitmap and retaining shades in bitmap?


I am working in a android project where in i have to change the color of the wall. For e.x if I take a picture of the wall having corners and select some color say blue. The color of the wall should change in such a way that the wall looks as if it is painted with that color. I mean to say that the shades at the corners of the wall should be retained after changing the color. Wall should not look like painted like flat rectangle.

Please let me know the way to do it.

Thanks in advance. Regards


Solution

  • Try the bellow link

    How to change Bitmap image color in android?

    Or

    http://www.codeproject.com/Articles/17162/Fast-Color-Depth-Change-for-Bitmaps

    OR

    how to change the color of certain pixels in bitmap android

    This may help You.