The Daily Click ::. Forums ::. Non-Klik Coding Help ::. A real programmer's union
 

Post Reply  Post Oekaki 
 

Posted By Message

ChrisB

Crazy?

Registered
  16/08/2002
Points
  5457
25th April, 2004 at 15:58:31 -

union {

COLORREF colour;
struct {
unsigned char red;
unsigned char green;
unsigned char blue;
}
}


 
n/a

Tigerworks

Klik Legend

Registered
  15/01/2002
Points
  3882
25th April, 2004 at 16:14:22 -

Um?

 
- Tigerworks

Kris

Possibly Insane

Registered
  17/05/2002
Points
  2017
25th April, 2004 at 16:31:45 -

yeah, better than that "(RGB>>16)&0xFF \ (RGB>>8 )&0xFF \ RGB&0xFF" crap

Image Edited by the Author.

 
"Say you're hanging from a huge cliff at the top of mt. everest and a guy comes along and says he'll save you, and proceeds to throw religious pamphlets at you while simultaniously giving a sermon." - Dustin G
   

Post Reply



 



Advertisement

Worth A Click