Link to home
Start Free TrialLog in
Avatar of Phreak3eb
Phreak3eb

asked on

Get and weight colors from image

I don't know the first thing about image processing and working with images in C#, so I'm looking for a solution or someone to point me in the direction of a solution that may solve what we are trying to do.

We want people to be able to upload a base picture and derive the colors from it.  Once the colors are derived, we need them to be weighted, i.e.:
#F3ACD4 makes up 23%
#754A8E makes up 18%
etc. up to 100%

Then based on those percentages, we need to assign those to certain values in a style sheet to compose a color scheme for a web page.

Is this possible?
ASKER CERTIFIED SOLUTION
Avatar of chinu1310
chinu1310
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Bob Learned
You could use a Hashtable (2003) or Dictionary<string, int> (2005) to count the occurrences of the color.   C# has the ability to quickly get information about an image that VB.NET doesn't have.

Bob