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

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

    Change the middle line to:

    
    

    You can get a crisp line on a pixel boundary by placing the line on a whole numbered unit.

提交回复
热议问题