Re: Getting the list of colors! by Peter
Peter
Thu Dec 08 15:40:53 CST 2005
Just so know (and you probably already do know), this can be used to
generate 256x256x256 custom colors:
Color::FromArgb( r, g, b ) ; // r,g,b in the range of 0 -> 255
Or even transparent colors with the first component being the alpha blend
(how transparent it is on a scale of 0 (see-through) to 255 (opaque)):
Color::FromArgb( a, r, g, b ) ;
Hence, if you wanted to display ALL possible colors that would be 4 billion
of them!
I know what you mean though, you want a list of the ones which are
standardly built into the system (e.g., Red, Green, Biege, DarkGreen, Gray,
etc.)...can't help you there...
[==P==]
PS - DirectX likes colors like this: Color::FromArgb(r,g,b).ToArgb(), which
is an integer representation of the color...
"Sinex" <manoj.narinder@honeywell.com> wrote in message
news:%23ZS2UX8%23FHA.328@TK2MSFTNGP14.phx.gbl...
> Hi,
> I want to retrieve the list of Colors available and display them in a
> drop
> down combo. But the Color strcture doesnt seem to have a method that
> returns
> the list of colors. Is there an enumerator that I can use?
>
> Sinex
>
>