WPF抗锯齿解决方法 [英] WPF Anti aliasing workaround
问题描述
抗锯齿不能关闭在WPF。但我想删除的WPF字体模糊看时,他们都很小。
Anti aliasing cannot be turned off in WPF. But I want to remove the blurred look of WPF fonts when they are small.
一种可能是使用.NET 2.0的组成部分。这看起来就失去了透明度,能力和混合的支持。从来没有尝试过,但。
One possibility would be to use a .net 2.0 component. This looks like it would lose the transparency capability and Blend support. Never tried it though.
任何人有一个解决方案?从它的任何缺点?
Anyone has a solution for this? Any drawbacks from it?
感谢您
推荐答案
你试过把一个<一个href="http://msdn.microsoft.com/en-us/library/system.windows.forms.integration.windowsformshost.aspx"相对=nofollow>的WindowsFormsHost 在WPF窗口/控制控制?这将使WPF来呈现一个WinForms控制。
Have you tried putting a WindowsFormsHost control on a WPF window/control? That will allow WPF to render a WinForms control.
更新2012年11月:这个问题的答案是4岁。 文本渲染了由于改进了WPF 。请不要把WinForms控件在WPF应用程序;这是一个hackish的方式来解决字体渲染。它不再需要。
UPDATE November 2012: This question and answer is 4 years old. Text rendering has since improved in WPF. Please don't put WinForms controls in WPF apps; that was a hackish way to fix font rendering. It's no longer needed.
这篇关于WPF抗锯齿解决方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!