Click here to Skip to main content
16,019,043 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
im just new in vb.net

VB
Dim yourArray As Point() = {New Point(e.X - pw, e.Y - pw), New Point(e.X, e.Y)}
            Dim cle As System.Drawing.Graphics
            Dim myPath As New GraphicsPath
            Dim myColor As Color

            cle = myPhoto.CreateGraphics
            pw = tbThickness.Value

            If eventString = "L" Then
                myColor = btnColor.BackColor
                myPath.StartFigure()
                myPath.AddLines(yourArray)
                myPath.CloseFigure()
                cle.DrawPath(New Pen(myColor, pw), myPath)
            End If
Posted

1 solution

See my responses to your other question on this subject.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900