View Single Post
Old 03-08-2007   #3 (permalink)
/\\/\\o\\/\\/ [MVP]


 
 

Re: Translating colors to hex and back

PoSH> [System.Drawing.Color]'red'


R : 255
G : 0
B : 0
A : 255
IsKnownColor : True
IsEmpty : False
IsNamedColor : True
IsSystemColor : False
Name : Red

PoSH> ([System.Drawing.Color]'red' ).ToArgb()
-65536

Greetings /\/\o\/\/

"Marco Shaw" <marcoDOTshaw_@_gmailDOTcom> wrote in message
news:%23Mz37NaYHHA.2436@TK2MSFTNGP06.phx.gbl...
> PowerShell/.NET/COM have anything that can take a 'human readable' color
> like "red" and convert it to hex, and vice-versa?
>
> Marco
>


My System SpecsSystem Spec