[wxPython-users] LCD vs CRT Monitors Issues (!)

Robin Dunn robin at alldunn.com
Mon Oct 1 12:57:08 PDT 2007


Chris Mellon wrote:

> 
> This looks like what happens when you re-draw anti-aliased text over
> itself without erasing first. You probably have cleartype (which
> anti-aliases text) turned on on your LCD, and not on your CRT (where
> it tends to look terrible), which is why the bug  correlates with your
> monitor type.

That's my guess too.  In a nutshell what is happening is that when the 
text is redrawn the anti-aliased portion of the new text is being 
blended with the background pixels that are already there, (the 
anti-aliased pixels from the previous draw) and are ending up darker 
than if they had been blended with the real background pixels.  The more 
you draw the text, the darker the blended pixels will become until they 
are full black and make the text look distorted and blocky.


> 
> Try using a solid background mode when you draw your text instead of a
> transparent brush.

Or simply ensure that the text is only drawn once each time the 
background behind it is drawn.


-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wxpython-users mailing list