private void LineTo(IntPtr hDC, int x1, int y1, int x2, int y2) { LPPOINT2 lppt = new LPPOINT2(); lppt.x1 = x1; lppt.y1 = y1; lppt.x2 = x2; lppt.y2 = y2; Polyline(hDC, ref lppt, 2); }
private static extern int Polyline(IntPtr hdc, ref LPPOINT2 lppt, int cPoints);