开发者

Using C# backcolors

开发者 https://www.devze.com 2023-02-08 15:59 出处:网络
In C#, I have a control that wants it\'s backcolor set by way of a开发者_如何转开发n Uint value.

In C#, I have a control that wants it's backcolor set by way of a开发者_如何转开发n Uint value. With out running 10's of thousands of permiatations, how do I know what value to use for Light Tan, Dark Green, etc?


I would guess it's a RGB color Take a hex #RRGGBB and convert to int. So red would be #FF0000, blue is #00FF00, green #0000FF. Just a guess.

So looking at the Web Color Chart, a light tan is #CFC996. Convert that to decimal is 13617558

Good luck

0

精彩评论

暂无评论...
验证码 换一张
取 消