Linked Questions

2 votes
3 answers
2k views

I'm making a system which includes picking a color using "colorDialog" and display it on a textbox. The problem is other colors display a Hex Value(like ffff8000). How can I change it into a readable ...
Mark's user avatar
  • 25
720 votes
21 answers
713k views

How can I get a color from a hexadecimal color code (e.g. #FFDFD991)? I am reading a file and am getting a hexadecimal color code. I need to create the corresponding System.Windows.Media.Color ...
viky's user avatar
  • 17.7k
7 votes
2 answers
2k views

I know how to get the name of predefined colors using hex value but how to to get the name of color while approximating its Hex valueto the closest known color.
fresky's user avatar
  • 329
5 votes
1 answer
6k views

I want to convert a hex color code to the suitable string color name... with the following code I was able to get the hex code of the "most used" color in a photo: class ColorMath { public static ...
user avatar
-1 votes
4 answers
4k views

I have a problem with getting the name of a color from a colordialog box in C#. I now have the following code to accomplish this: private void bPickColor_Click(object sender, EventArgs e) { ...
user3176938's user avatar
-2 votes
1 answer
3k views

I need to get the corresponding color name based on the color's hexadecimal palette code. I tried: brush = (new System.Windows.Media.SolidColorBrush(System.Windows.Media.Color.FromArgb(dialog.Color....
Anoushka Seechurn's user avatar
2 votes
2 answers
2k views

i am trying to fetch the color name from the hex for an application but system.Drawing.color is not available in .netcore can someone suggest an alternative solution any API? I tried MagickImage lib ...
sifa vahora's user avatar
2 votes
1 answer
1k views

I want to store a color hex value (such as "#FFFF1493") as its "human-friendly" name (such as "DeepPink"). With help from SLaks and nvoigt here, I've now got this code: if (sender is Canvas) { ...
B. Clay Shannon-B. Crow Raven's user avatar
0 votes
1 answer
945 views

Am getting color input from user using SfColorPalette, this returns me selected color as hex decimal color codes. But i need this colors as equivalent or exact color names since it will used to filter ...
Mohanvel V's user avatar
0 votes
2 answers
930 views

I have GridView to display data as Label <ItemTemplate> <asp:Label ID="lblIsActive" runat="server" Text='<%# GetIcon((String)Eval("IS_ACTIVE"))%>' SkinID='<%# GetSkinId((String)...
sarah khaled's user avatar
1 vote
1 answer
1k views

I want to change the forecolor of a label in .aspx I tried to compare if value is > 0 then it should be Green if not then Red the problem is in condition part I tried to use int, double, float.. but ...
Ken's user avatar
  • 295
0 votes
3 answers
171 views

Is it possible to convert Hexadecimal color code to string color value . For instance if i give a hex color value as "#FFFFFF" it should return value as "White" string hextostring(string color) { //...
joedanny's user avatar
  • 157
-1 votes
3 answers
107 views

How do you get the color of a control, such as a label or rectangle? I need to do something like this: if (label.foreground == #FFFFFF) Messagebox.Show("Branco!"). For awhile, I resolved my case ...
Noberto Pessoa's user avatar