Program to identify the colors in a picture. code can be in any language

Your question is very vague... Firstly Identify the type of image file you want to open...Then upon it you need to know that how many bits represent a pixel in that format then your work is very easy.
Just pick that many number of bytes and match it with the standard pixel values to tell which colour it is.It is not at all dependent on the coding language until you perform the operation properly.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.