Click here to Skip to main content
15,906,081 members
Home / Discussions / C#
   

C#

 
AnswerRe: getPixel problem c# Pin
Rick Shaub14-Oct-10 7:11
Rick Shaub14-Oct-10 7:11 
GeneralRe: getPixel problem c# Pin
badescuga14-Oct-10 7:20
badescuga14-Oct-10 7:20 
AnswerRe: getPixel problem c# Pin
Luc Pattyn14-Oct-10 7:31
sitebuilderLuc Pattyn14-Oct-10 7:31 
QuestionRefresh User Control look Pin
Mazdak14-Oct-10 3:17
Mazdak14-Oct-10 3:17 
AnswerRe: Refresh User Control look Pin
Luc Pattyn14-Oct-10 3:35
sitebuilderLuc Pattyn14-Oct-10 3:35 
QuestionConvert color from RGB to Color name Pin
MrKBA14-Oct-10 0:22
MrKBA14-Oct-10 0:22 
AnswerRe: Convert color from RGB to Color name Pin
V.14-Oct-10 0:52
professionalV.14-Oct-10 0:52 
GeneralRe: Convert color from RGB to Color name Pin
MrKBA14-Oct-10 1:27
MrKBA14-Oct-10 1:27 
GeneralRe: Convert color from RGB to Color name Pin
V.14-Oct-10 1:35
professionalV.14-Oct-10 1:35 
GeneralRe: Convert color from RGB to Color name Pin
OriginalGriff14-Oct-10 1:48
mveOriginalGriff14-Oct-10 1:48 
GeneralRe: Convert color from RGB to Color name Pin
Luc Pattyn14-Oct-10 2:33
sitebuilderLuc Pattyn14-Oct-10 2:33 
GeneralRe: Convert color from RGB to Color name Pin
OriginalGriff14-Oct-10 3:46
mveOriginalGriff14-Oct-10 3:46 
AnswerRe: Convert color from RGB to Color name Pin
Keith Barrow14-Oct-10 1:56
professionalKeith Barrow14-Oct-10 1:56 
AnswerRe: Convert color from RGB to Color name Pin
PIEBALDconsult14-Oct-10 3:09
mvePIEBALDconsult14-Oct-10 3:09 
QuestionRe: Convert color from RGB to Color name Pin
Luc Pattyn14-Oct-10 3:33
sitebuilderLuc Pattyn14-Oct-10 3:33 
AnswerRe: Convert color from RGB to Color name Pin
PIEBALDconsult14-Oct-10 3:41
mvePIEBALDconsult14-Oct-10 3:41 
GeneralRe: Convert color from RGB to Color name Pin
Luc Pattyn14-Oct-10 3:59
sitebuilderLuc Pattyn14-Oct-10 3:59 
AnswerRe: Convert color from RGB to Color name Pin
W Balboos, GHB14-Oct-10 9:38
W Balboos, GHB14-Oct-10 9:38 
GeneralRe: Convert color from RGB to Color name Pin
Keith Barrow14-Oct-10 13:00
professionalKeith Barrow14-Oct-10 13:00 
GeneralRe: Convert color from RGB to Color name Pin
PIEBALDconsult14-Oct-10 16:49
mvePIEBALDconsult14-Oct-10 16:49 
GeneralRe: Convert color from RGB to Color name Pin
W Balboos, GHB15-Oct-10 4:46
W Balboos, GHB15-Oct-10 4:46 
GeneralRe: Convert color from RGB to Color name Pin
W Balboos, GHB15-Oct-10 4:35
W Balboos, GHB15-Oct-10 4:35 
Keith Barrow wrote:
What about the longs that don't have named colors (which are the majority, there are > 16 million colours available)? Make one up? Find the closest (Now what do I do if it is exactly between to colors?)?



I'm not trying to be cynical, but, if you read my answer, I include:

A default value catches the rest (convert to a sting "#rrggbb", for example)

Personally, I don't take the 16+ million colors, and tiny subset which are actually given names, to be a reason "why it can't be done", but why it won't work well for the general case. It is a solution that will work "when it can". Another thought for consideration: although obviously of little-to-no-use for general color selection, such as an image, it would be quite useful for situations where the color set is usually limited, such as a web-page (yes, any RGB value can be specified, but typically, a fixed known value is selected viz-a-viz a custom color).

One might even consider the list of colors available in, for example, the .NET framework, as some indication that others think that a color listing is feasible. Yes, the directionality is changing, and thus, the mapping won't always work . . . but the resultant utility, or lack of it, is a decision for the original questioner to ponder.

The clear reasons (in your opinion) as to why it can't be done (as you put it) are only why it shouldn't be done.

Perhaps you were a bit harsh or overzealous in the criticism, or now, even more convinced of it. Still, I'll not vote you a one for the lambaste - you're entitled and all that.







"The difference between genius and stupidity is that genius has its limits." - Albert Einstein
"As far as we know, our computer has never had an undetected error." - Weisert
"If you are searching for perfection in others, then you seek dissappointment. If you are searching for perfection in yourself, then you seek failure." - Balboos HaGadol Mar 2010

GeneralRe: Convert color from RGB to Color name Pin
Keith Barrow16-Oct-10 3:40
professionalKeith Barrow16-Oct-10 3:40 
QuestionMEF never calls OnImportsSatisfied Pin
WebMaster13-Oct-10 23:49
WebMaster13-Oct-10 23:49 
AnswerRe: MEF never calls OnImportsSatisfied Pin
Not Active14-Oct-10 0:13
mentorNot Active14-Oct-10 0:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.