Image in WPF getting Blurry

前端 未结 7 896
慢半拍i
慢半拍i 2020-11-30 03:58

I am developing an application in WPF using C#. I am putting Images in a WrapPanel and showing inside a Grid with one more Border and using images in Buttons also. Problem i

7条回答
  •  日久生厌
    2020-11-30 04:30

    I think what Markus told is the one way to resolve your issue and try by adding one more property in it RenderOptions.EdgeMode="Aliased" for each image I mean :

    
    

    if you still not able to fix your problem then you can refer this http://blogs.msdn.com/b/dwayneneed/archive/2007/10/05/blurry-bitmaps.aspx to create a custom Bitmap class and apply on all Images which are creating trouble for you.

    You can also see this Stack Overflow Question

提交回复
热议问题