Linked Questions
13 questions linked to/from convert hex code to color name
2
votes
3
answers
2k
views
Hex value colors to a readable text colors in C# [duplicate]
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 ...
720
votes
21
answers
713k
views
How do I get the color from a hexadecimal color code using .NET?
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 ...
7
votes
2
answers
2k
views
Getting the name of color through Hex Value?
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.
5
votes
1
answer
6k
views
Converting Hex Color Code to Color Name (string)
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 ...
-1
votes
4
answers
4k
views
How to get the name (Like: Red or Blue) of a color from a color dialog?
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)
{
...
-2
votes
1
answer
3k
views
Getting the color name from the ARGB and/or hexadecimal color palette [duplicate]
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....
2
votes
2
answers
2k
views
get a color name from hex in .Net core (without using System.Drawing.Color) C#
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 ...
2
votes
1
answer
1k
views
How can I convert a hex Color value to its human-readable string representation?
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)
{
...
0
votes
1
answer
945
views
Get near or equivalent color name from hex decimal value windows apps
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 ...
0
votes
2
answers
930
views
set SkinID Programmatically
I have GridView to display data as Label
<ItemTemplate>
<asp:Label ID="lblIsActive" runat="server" Text='<%# GetIcon((String)Eval("IS_ACTIVE"))%>' SkinID='<%# GetSkinId((String)...
1
vote
1
answer
1k
views
Check Positive Negative in Eval & Change color
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 ...
0
votes
3
answers
171
views
Hexadecimal color code convertor
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)
{
//...
-1
votes
3
answers
107
views
How do I get the forecolor of an control?
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 ...