Problem in drawing on WPF canvas

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Farhomar
    New Member
    • Aug 2007
    • 6

    Problem in drawing on WPF canvas

    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
Working...