Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I currently have an image of Notepad that uses a specific color in its dialog:

enter image description here

I'd like to obtain the color used here, but at zooming in it looks like this (I guess because of ClearType):

enter image description here

It's basically a combination of different colors, so that it looks better without zooming in.

How do I obtain the original color used here to paint the text? I'd like to use the same color, but I don't know which of all those colors in the zoomed-in picture to pick.

share|improve this question

migrated from Apr 3 '11 at 23:17

This question came from our site for user experience researchers and experts.

It's called subpixel rendering by the way – Phil Apr 4 '11 at 4:49

Turn off cleartype and try again.

Control Panel\Appearance and Personalization\Display

share|improve this answer
I'm sorry but although some text in Windows does change, the text in this dialog doesn't... – pimvdb Apr 4 '11 at 16:30
up vote 1 down vote accepted

What I did in the end was:

  • Draw a string in any color myself (creating a Label in VS.NET).
  • Make a screenshot and see which pixel of which letter uses exactly the same color when using ClearType and that you supplied in VS.NET (ForeColor property). This is, for example, the pixels in the second column of the second downstroke of the letter 'n'.
  • Capture the color of that pixel of that letter the Notepad dialog.

... and then you get rgb(0, 51, 188). When I use that color, my custom Label looks just like the Notepad dialog, so I guess I've solved the problem.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .