graphics.DrawLine(new Pen(Color.Blue), x1, y1,x2, y2);
I define x1,y1,x2,y2 in the variable section as double vars. In the compilation process NT gives me the following messages:
1-The best overloaded method match for 'System.Drawing.Graphics.DrawLine(System.Drawing.P en,float,float,float,float,)
2-Argument '2': cannot convert from 'double' to 'float'
3-Argument '3': cannot convert from 'double' to 'float'
4-Argument '4': cannot convert from 'double' to 'float'
5-Argument '5': cannot convert from 'double' to 'float'
any Ideas how I can make it work?
Regards
Comment