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).

Thanks!

Ric