Android: How to do this framing paint?

Posted by iDroid Explorer on Stack Overflow See other posts from Stack Overflow or by iDroid Explorer
Published on 2012-03-17T07:33:42Z Indexed on 2012/10/16 11:02 UTC
Read the original article Hit count: 201

I Have Some static images like below:

enter image description here

Now, I want is, when i touch on the face or hand, then the selected color should be fill on that skin portion.

See below image of result:

enter image description here

So how to get the result like above ?? Redo and Undo Functionality Should be also there.

I have try with the FloodFill color but doing that i can only able to do color in to the perticular portion. as FloodFill only fill the color till the same pixwl color comes. If the touch place pixel color get change the it will not fill color on it.

So Usinf FloodFill i got the result like below image, If i press on the hand, then only hand portion will fill with color, instead of it i want to fill color to the other hand and face also. enter image description here

So Please help me in this case.

EDITED

After some reply i got the solution like this one.

But still there is a memory issue. It consume lots of memory to draw the color. So please can anyone help me for it ?

© Stack Overflow or respective owner

Related posts about android

Related posts about canvas