简体   繁体   中英

What color is this windows color?

I've been asked to replicate a WPF form, but I have no idea what color they are using. I've gotten the RGB of it as seen below, but I would rather find out what is the actual Windows color name. I suspect it is indeed a default Windows color:

在此处输入图片说明

在此处输入图片说明

The colour is approximately Alice Blue .

After converting it to hex it can be looked up http://www.htmlcsscolor.com/hex/EFF3F7 :

#EFF3F7 (or 0xEFF3F7) is unknown color: approx Alice Blue - from the Color Information section

Alice Blue (#F0F8FF) itself is a Windows colour.

I needed to convert a shade of Alice Blue as a background on a WPF form and found it took longer than expected to find the answer:

using System.Windows.Media;

--

System.Drawing.Color myColor = System.Drawing.ColorTranslator.FromHtml("#EFF3F7");
this.Background = new SolidColorBrush(System.Windows.Media.Color.FromArgb(myColor.A, myColor.R, myColor.G, myColor.B));

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM