When I draw rectangle on WPF canvas with thickness=1 and color=black.
It looks like it increases the thickness and spared the color. The drawing doesn’t look sharp. How to solve this problem?
Protected Overrides Sub OnRender(ByVal dc As System.Windows. Media.DrawingCo ntext)
dc.DrawRectangl e(Nothing, New Pen(Brushes.Bla ck, 1), New Rect(10, 10, 100, 100))
MyBase.OnRender (dc)
End Sub
It looks like it increases the thickness and spared the color. The drawing doesn’t look sharp. How to solve this problem?
Protected Overrides Sub OnRender(ByVal dc As System.Windows. Media.DrawingCo ntext)
dc.DrawRectangl e(Nothing, New Pen(Brushes.Bla ck, 1), New Rect(10, 10, 100, 100))
MyBase.OnRender (dc)
End Sub