开发者

Images in WPF 4.0 are of lesser quality than in 3.5

开发者 https://www.devze.com 2023-01-04 17:47 出处:网络
I just updated my app to .Net 4.0 from 3.5sp1 Which included removing references to the toolkit and exhange them with system.xaml.

I just updated my app to .Net 4.0 from 3.5sp1

Which included removing references to the toolkit and exhange them with system.xaml.

Some more reference changing was r开发者_JAVA技巧equired by me but I dont quite recall what they were.

Anyway, after I compiled and run it the the first thing that popped into my eyes is that all the images seem worse.

Here's a screenshot that show some of the changes, WPF 4.0 is on the right

Images in WPF 4.0 are of lesser quality than in 3.5

Will appreciate any help.

Thanks

Dan


Try setting RenderOptions.BitmapScalingMode to Fant or HighQuality. It looks like the default was changed in WPF 4.0. From Link:

The default RenderOptions.BitmapScalingMode (Unspecified) is now Linear instead of Fant. If you still want Fant, you can re-enable it.

0

精彩评论

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