determine colour mix of a solid color image
Hello, I need to be able to derive which colours, and their percentages, that make up a solid color image (a square) for a chemical analysis application I am writing in VB.NET. For example, a pink square. I need to be able to determine which colors are being used (red and white in this case) and which percentage of each exist. Can someone point me to a code source/sample/control that will do this (or show me how it can be done)?
Also, can anyone suggest a scanner control? I only need very basic functionality to scan a chemical stip (it will always be a square). I do not need to do anything with it, like crop, convert, transform, etc. All I need to do is scan it and then determine the colours involved and their percentages (as I explain above).
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL