Coloring Images through a Palette Android

I was wondering is there a way to color the images dynamically through a palette?

The coloring being similar to the bucket in paint i.e. [coloring areas bounded by outlines]

I want to color different images e.g. a kid, a tree etc. the user should be able to color the face of the kid by any color on the palette [making it similar to the bucket in MS Paint], but I am lost on how to achieve it.

Thanks in advance!

Answers


Implement the Flood Fill algorithm :)


Need Your Help

Symfony i18n table: Ways to get fallback default value?

mysql internationalization geolocation symfony1 translation

I'm building a city names table in MySQL with about 10K rows to be a Symfony i18n table. Basically, the default culture is en_US and every city in the table is initially of this culture. Over time,...

Creating a Generic<T> type instance with a variable containing the Type

c# generics types instance

Is it possible to achieve the following code? I know it doesn't work, but I'm wondering if there is a workaround?

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.