111,130
社区成员
发帖
与我相关
我的任务
分享
public void ImageLine(Panel p_Panel, int p_X1, int p_Y1, int p_X2, int p_Y2)
{
Graphics _Graphics = Graphics.FromHwnd(p_Panel.Handle);
Pen _Pan = new Pen(Brushes.Red, 2);
_Graphics.DrawLine(_Pan, p_X1, p_Y1, p_X2, p_Y2);
_Graphics.Dispose();
}