开发者

Using C# backcolors

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜