什么是屏幕坐标?为何有时候要把坐标转换成屏幕坐标?

hongprogrammer 2008-11-18 10:35:21

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;
}
}

}
这段程序为何要转换成屏幕坐标,不转换不行吗?
...全文
145 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
duzidengdai521 2008-11-18
  • 打赏
  • 举报
回复
相对坐标问题
屏幕坐标是以显示器实际显示的左下角为原点
窗口坐标是以某一窗口的左下角为原点


111,131

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Creator Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧