Making WPF Images Display in High Quality


By default WPF images are display in a low quality resolution.  For images to be displayed in high quality, it is best to add the following code to your constructor after InititalizeComponent().

' Force images to display high quality.
RenderOptions.SetBitmapScalingMode(Me, BitmapScalingMode.HighQuality)

You can read amore indepth article on Stefan Olson’s blog at: http://www.olsonsoft.com/blogs/stefanolson/post/Workaround-for-low-quality-bitmap-resizing-in-WPF-4.aspx.

Advertisements