المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : GDI Get Painted Points



C# Programming
12-20-2009, 02:11 PM
I draw line on windows form, using following function.

private void DrawLine(Point pPoint, Point pFisrtPoint)
{
Graphics graph = this.CreateGraphics();
Pen pen = new Pen(Color.Red);
graph.DrawLine(pen, pPoint, pFisrtPoint);
}

How can I get painted points coordinates?