flash/actionscript 中的子像素颜色
在 Flash 中处理文本时,我经常遇到以下问题:
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您使用的是 PC win7,请点击此网站上的“打印屏幕”并将其粘贴到 Photoshop。放大后您会发现,这就是子像素抗锯齿如今成为标准方法的方式。关掉它,一切看起来都很丑。这不是 Win XP 或 OSX 的目的。老式的抗锯齿是基于灰度的。子像素使用完整的调色板。更不用说该专利仅属于微软。
这项发明极大地提高了 LCD 上的文本质量,但另一方面我们也失去了像素的完美性。 Flash 使用本机方法在 Win 7 下执行(我想知道 Vista 是否也是如此)。如果要避免这种效果,请在 BitmapData 上绘制文本字段,请选择 BitmapText 或使用像素字体。顺便说一句,如果你在 XP 和全屏模式下,你可以体验到类似的效果
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