My images are blurry! Why isn’t WPF’s SnapsToDevicePixels working?

You may want to consider trying a new property available now in WPF4. Leave the RenderOptions.BitmapScalingMode to HighQuality or just don’t declare it.

NearestNeighbor worked for me except it led to jaggy bitmaps when zooming in on the application. It also didn’t seem to fix any glitches where icons were sizing in weird ways.

On your root element (i.e. your main window) add this property: UseLayoutRounding="True".

A property previously only available in Silverlight has now fixed all Bitmap sizing woes. 🙂

Leave a Comment