How to draw none fuzzy/blurry line in DrawingImage/DrawingContext?

前端 未结 3 1325
谎友^
谎友^ 2021-01-14 08:11

See the image. I would like the middle line to be a crispy 1 pixel line. You can copy and paste the sample markup into kaxaml .

alt text http://img832.imageshack.us

3条回答
  •  悲&欢浪女
    2021-01-14 08:49

    I found the solution at: http://msdn.microsoft.com/en-us/library/system.windows.media.renderoptions.setedgemode.aspx

    
    RenderOptions.SetEdgeMode(this, EdgeMode.Aliased);
    

提交回复
热议问题