Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 ux.stackexchange.com 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
add comment

2 Answers

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
add comment
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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.