473,405 Members | 2,349 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

FromArgb To ColorName

latitude
Is it possible to use any procedures to get a color name from a random generated color using FromArgb ?

Edit: Using C#
Dec 18 '06 #1
1 2522
macklin01
145 100+
Is it possible to use any procedures to get a color name from a random generated color using FromArgb ?

Edit: Using C#
I'm not a C# user by any means, but I thought I'd at least try to help clarify for others what you're trying to do. Do you want to take an (R,G,B,A) value and match an approximate English color name, e.g., (139,69,19,0) = brown?

If that's the case (and regardless of programming language), what I would recommend is creating a table of known color values and English-equivalent names, and then choosing the best match among those colors values. For instance, you could make a list of 256 typical colors (from any Google search for color codes, more typically used for web design) and use those to get a best match.

I hope this helps get you started, or at the least is an interation towards further clarifying what you're looking to do. -- Paul
Dec 18 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Mevar81 | last post by:
Anyone know if is it possible to create dinamically a struct?For example I want to set the color of a button while at runtime, and to set it's ForeColor property I need to read a Xml file where I...
3
by: Gulliver | last post by:
Having a terible time figuring out how to get Color.FromARGB to work. Anyone been successful at implementing this control?
1
by: Steve Randall | last post by:
I use a ColorDialog control to select a number of custom colours using the code segment below, I've fixed the index to 0 for the purpose of highlighting the problem. Dim intRed As Integer Dim...
2
by: Sam | last post by:
Hi All I'm having problem (which seems to be simple) to convert my color settings using FromArgb method. The colors are saved to a text file as string, using ToArgb.ToString method. For example...
1
by: sp | last post by:
I have this strange problem. The application I am working on imports color values from Flash that look like this: 0x-f9fff6 And, on the script side, it uses a conversion algorithm to convert...
5
by: monmonja | last post by:
Hi i'm new to xsl and i have been using smarty php templating but its just so hard to read codes in smarty/php/flash than xml/xsl/flash, i rather sacrifice speed then not being able to read code...
3
by: =?Utf-8?B?TmVlZFRvS25vdw==?= | last post by:
When I use the following commands I do not get a solid color loks like some dots are in it. Dim bmp As New Bitmap(479, 30) Dim gfx As Graphics gfx = Graphics.FromImage(bmp) Dim BGroundBrush...
3
by: veenna | last post by:
How can i refresh datagrid in vb.net. I want to display color in one cell in grid but when it loads first time it is working here is my code Public Class Dialog_Colorazione Const YEAR_START...
4
by: oberon | last post by:
Hi, I am trying to use the function Color.FromArgb(Int32). The Int32 is on the format AARRGGBB, where AA is the alpha component. My problem is that when I want to specify a solid color I need...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.