How to get the colour name by RGB value?

Let’s learn how to get the colour name by RGB value. The most accurate or helpful solution is served by Stack Overflow.

There are ten answers to this question.

Best solution

How to get closest colour name from RGB value

I am trying to get a color pixel from a image and then compare it with some other colors using switch case and display using toast but the problem is I am not able to match it using switch case. can any one help me. here is my code public boolean onTouch(View v, MotionEvent event) { int x = (int)event.getX(); int y = (int)event.getY(); int pixel = bitmap.getPixel(x,y); switch (pixel) { case Color.RED: Toast.makeText(getApplicationContext(), "color", Toast.LENGTH_LONG).show(); break; ...

Answer:

I think the reason why the case never match is because the pixel you get is not exactly the Color.RED...

Read more

Jatin Malhotra at Stack Overflow Mark as irrelevant Undo

Other solutions

Java: How to get the name of colors in Java from Hex or RGB values?

Hi, The problem is that I need to get the names of colors using Java.  I got the hex values and the RGB values of where ever the cursor goes.  I tried using the hex value and match it to a file of hex values with their color names but only white and...

Answer:

Those colors specified in "java.awt.Color" are just shortcuts for readily available colors...

Read more

Scott Danzig at Quora Mark as irrelevant Undo

An odesk contractor appears to have added a script to my site.  I want to be fair, is there any way this is a mistake?

He was modifying an existing site.  The site he created caused several words on my page to appear hyperlinked and when you moused over a little advertising window appeared.  My site did NOT do this before.  I commented out a script that was not on the...

Answer:

data.htm is an entry point and run.js contains the actual code to add underlined ads as well as what...

Read more

Deep Joy Majumdar at Quora Mark as irrelevant Undo

Excel

Hi Having a bit of a problem with printing with Excel. I have itemised the area on the worksheet I want to print and it is a single page. When I print the page and also when Preview the page it only prints or displays the top 2/3 of the required info...

Answer:

Eric, Highlighting an area is the first step. You must then select that area as the print area. Inversions...

Read more

Miningco.com Mark as irrelevant Undo

Loop missing do. but do is not missing

Please help Tom I am putting my full code below. I can't seem to find the problem. As soon as it tries to compile it throws the error Loop missing Do. Thank you so much for answering my prior question so quickly! Sub Extract_Totals() ? Application.ScreenUpdating...

Answer:

this line If ActiveCell.Value = TELESIS Then doesn't seem to have a terminating End If statement and...

Read more

Miningco.com Mark as irrelevant Undo

What will books look like in 20 years?

"... What I really would like to know is how book stores will look in 20 years? ..." @sunnysideup ~ http://news.ycombinator.com/item... Reposted from http://www.flickr.com/photos/boo... This is really the most insightful question here. What...

Answer:

Kindle http://www.amazon.com/dp/B0051QV...

Read more

Anonymous at Quora Mark as irrelevant Undo

What D&D alignment represents my views on society?

Society in general: • The death penalty should not be implemented without evidence showing who committed the crime, that way innocent people don’t get made an example of, and it should only ever be used on people who have committed genocides...

Answer:

hi, ah the good ol' D&D days...chaotic neutral? hard to gauge with so many statements of varying...

Read more

King of Chaos at Yahoo! Answers Mark as irrelevant Undo

You won't find this information anywhere.ANYWHERE! What do you think?

Some people may like this.You're not gonna find this information anywhere else.I'm uncovering the secrets! (I've also provided proof and have fixed the news link) Special thanks to my American friend who helped me proofread my writing. I believe that...

Answer:

you are a well informed person.

Read more

David at Yahoo! Answers Mark as irrelevant Undo

Would you like to know everything about IRAN? things that you'd never hear anywhere else?

Some people may like this.If not you don't have to read it. Special thanks to my American friend who helped me proofread my writing.It's taken me almost a year to find some pieces of this information. I believe that if you spend 5-10 minutes reading...

Answer:

Having had the wonderful opportunity to visit your country enabled me to see for myself how wonderful...

Read more

David at Yahoo! Answers Mark as irrelevant Undo

Are any legal problems with distributing the sRGB IEC-61966-2.1 ICC profile even though it's been embedded into half the JPEGs on the planet?

Specifically I am referring to this profile here: http://www.color.org/srgbprofile... ... you know, THE sRGB profile. The one. There are others[1], yes, but this is this the big one. Based on the sha1 of its binary data is present in almost half the...

Answer:

The sRGB profiles on the ICC have this disclaimer: To anyone who acknowledges that the file "sRGB...

Read more

Darrian Young at Quora Mark as irrelevant Undo

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.