开发者

Subpixel color in flash/actionscript

开发者 https://www.devze.com 2023-02-07 12:26 出处:网络
When working with text in Flash, I often encounter the following problem: http://www.aino.se/media/i/开发者_开发技巧subpixel.png

When working with text in Flash, I often encounter the following problem:

http://www.aino.se/media/i/开发者_开发技巧subpixel.png

This makes the text "glow" in various colors. Is there any good way to avoid this? It has something to do with subpixel rendering, but I'm not sure how to fix it. I tried most of the options available.


Hit print screen on this website if you are on PC win7 and paste it to photoshop. Zoom in and then you'll see this is the way how subpixel anti-aliasing became a standard method these days. Turn this off and everything looks ugly. Is not what Win XP or OSX was about. The old school anti-aliasing was based on grey scale. Sub pixel is using full palette of colors. Not mention that this patent belongs to Microsoft only.

This invention improved text quality on LCD a lot but we loosing a pixel perfection in other hand. And Flash performing under Win 7 (I wonder if Vista as well) using native method. If you want to avoid this effect draw Text Field on BitmapData, select BitmapText or use pixel font. By the way if you are on XP and full screen mode you can experience similar effect

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号