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

前端 未结 3 1323
谎友^
谎友^ 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 09:09

    I saw a similar issue with the Border control, although @phi your solution worked in most cases I also had to add the following to get it to completely work:

    SnapsToDevicePixels="True"
    

提交回复
热议问题