[DllImport("gdiplus.dll", CharSet=CharSet.Unicode, ExactSpelling=true)]
static extern int GdipAddPathLine(HandleRef path, float x1, float y1,
float x2, float y2);
Declare Function GdipAddPathLine Lib "gdiplus.dll" (TODO) As TODO
None.
None.
Please add some!
Add this code to a form:
protected override void OnPaint(PaintEventArgs e)
{
e.Graphics.DrawLine(new Pen(Color.Red), 0, 0, 100, 100);
}
System.Drawing.Graphics.DrawLine(Pen pen, float x1, float y1, float x2, float y2);