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
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)