private void Form1_MouseMove(object sender, MouseEventArgs e)
{
if(e.Button==MouseButtons.Left)
{
if (radioButton1.Checked == true)
{
ControlPaint.DrawReversibleLine(PointToScreen(ps),PointToScreen(pe),Color.Black);
pe = e.Location;
}
} }
这段程序为何要转换成屏幕坐标,不转换不行吗?
屏幕坐标是以显示器实际显示的左下角为原点
窗口坐标是以某一窗口的左下角为原点