I Have Some static images like below:
Now, I want is, when i touch on
One basic way would be something like the floodfill algorythm. The Wikipedia article describes the algorythm and its variations pretty well.
Here you can find a implementation on SO. But depending on your specific needs this one has to be modified.