Click here to Skip to main content
15,887,331 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
what is unique colour? explain...

What I have tried:

what is unique colour? explain...
Posted
Updated 11-Dec-23 3:06am
v2
Comments
CPallini 11-Dec-23 2:21am    
And, above all: what has to do with C++?
Richard MacCutchan 11-Dec-23 4:06am    
All colours are unique.
Andre Oosthuizen 11-Dec-23 13:50pm    
Not sure why I am the only one to mark this as an unclear question - "what is the purpose of the universe", jumps to mind as well as "beauty is in the eye of the beholder", explain...
[no name] 12-Dec-23 15:41pm    
One that is not in the list of colors you are maintaining.

1 solution

A unique color is some color with some unique value, but colors can be represented in different data formats which have than some different "color rooms".
In my heyday the colors were 1, 2 or 3 byte which translates to 8, 256 or 16,7 mio colors. The later 4th bit is some transparency value. So some basic knowledge about bits and bytes and the operators is helping to work with colors.

So read the wikipedia for some theory. See also the links after the article.

And when interesting in code than I recommend the outstanding CXImage article.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900