Tuesday, 24 July 2012

Fix for Icons in WPF being blurry

 

Just found this article on stack overflow about why our WPF icons appear blurry.

http://stackoverflow.com/questions/5645274/image-in-wpf-getting-blurry

Turns out you can fix this by adding the following attached properties to your images

<Image Source="/LoginPanel;component/Icons/icoLogin.ico"
RenderOptions.BitmapScalingMode="NearestNeighbor"
RenderOptions.EdgeMode="Aliased"/>

No comments:

Post a Comment

How to fix blurry images in Google Chrome

Problem When browsing sites with thumbnail images, those images appear blurred in Chrome, but not in other browsers such as Internet Explore...