Click here to Skip to main content
15,892,927 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Need to remove buttons from a propertysheet Pin
Hans Ruck19-Mar-02 23:55
Hans Ruck19-Mar-02 23:55 
Generalgen. a HASH from MAC address Pin
peterchen19-Mar-02 23:09
peterchen19-Mar-02 23:09 
GeneralHelp with probably basic ASSERT Pin
Jason Hooper19-Mar-02 22:59
Jason Hooper19-Mar-02 22:59 
GeneralRe: Help with probably basic ASSERT Pin
Joaquín M López Muñoz19-Mar-02 23:11
Joaquín M López Muñoz19-Mar-02 23:11 
GeneralRe: Help with probably basic ASSERT Pin
Jason Hooper19-Mar-02 23:32
Jason Hooper19-Mar-02 23:32 
GeneralRemove Menu Pin
vin19-Mar-02 22:21
vin19-Mar-02 22:21 
Questionjudge two RGB values are same color, one is just darker ?? Pin
19-Mar-02 20:31
suss19-Mar-02 20:31 
AnswerRe: judge two RGB values are same color, one is just darker ?? Pin
Joaquín M López Muñoz19-Mar-02 21:17
Joaquín M López Muñoz19-Mar-02 21:17 
What is to be considered "the same color" is a fuzzy question, but you might find some approaches good for your needs. RGB triplets can be mapped to a different colorspace called HSV (Hue, Saturation and Value). From a physiological point of view, hue seems to capture well what humans perceive as "color", while saturation and value account for "brightness" and "luminosity", so to say.
H ranges between 0 and 360 degrees, and it is to be seen as "circular", i.e. 0=360.
So, you can calculate the H component for two RGB triplets and apply some distance criterion to determine whether they are the same color or not. Follow this link for a RGB to HSV routine in C. Hue values for the RGB triplets in your post are 235 and 229, respectively.

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
AnswerRe: judge two RGB values are same color, one is just darker ?? Pin
David Wengier19-Mar-02 21:36
David Wengier19-Mar-02 21:36 
GeneralRe: judge two RGB values are same color, one is just darker ?? Pin
Joaquín M López Muñoz19-Mar-02 21:46
Joaquín M López Muñoz19-Mar-02 21:46 
GeneralRe: judge two RGB values are same color, one is just darker ?? Pin
David Wengier19-Mar-02 21:55
David Wengier19-Mar-02 21:55 
AnswerRe: judge two RGB values are same color, one is just darker ?? Pin
Jon Hulatt20-Mar-02 5:12
Jon Hulatt20-Mar-02 5:12 
QuestionSaving Variable as a file? Pin
MarkPQ19-Mar-02 19:27
MarkPQ19-Mar-02 19:27 
AnswerRe: Saving Variable as a file? Pin
Derek Waters19-Mar-02 19:58
Derek Waters19-Mar-02 19:58 
GeneralExcel Automation Pin
phat19-Mar-02 19:25
phat19-Mar-02 19:25 
GeneralRe: Excel Automation Pin
Bill Wilson20-Mar-02 7:31
Bill Wilson20-Mar-02 7:31 
GeneralRe: Excel Automation Pin
phat20-Mar-02 14:31
phat20-Mar-02 14:31 
GeneralRe: Excel Automation Pin
Bill Wilson21-Mar-02 5:26
Bill Wilson21-Mar-02 5:26 
GeneralRe: Excel Automation Pin
Carlos Antollini21-Mar-02 5:43
Carlos Antollini21-Mar-02 5:43 
GeneralBook suggestion Pin
19-Mar-02 18:29
suss19-Mar-02 18:29 
GeneralRe: Book suggestion Pin
19-Mar-02 18:36
suss19-Mar-02 18:36 
GeneralRe: Book suggestion Pin
markkuk19-Mar-02 22:56
markkuk19-Mar-02 22:56 
GeneralRe: Book suggestion Pin
alex.barylski19-Mar-02 21:42
alex.barylski19-Mar-02 21:42 
GeneralRe: Book suggestion Pin
Tom Archer22-Mar-02 6:51
Tom Archer22-Mar-02 6:51 
GeneralRe: Book suggestion Pin
alex.barylski22-Mar-02 18:57
alex.barylski22-Mar-02 18:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.