比如要用鼠标在窗体内一个picturebox上画矩形,怎么把鼠标坐标切换到picturebox中的内部坐标呢,这样: pictureboxGra.DrawRectangle(Pens.Blue, new Rectangle() { Location = pictureBox1.PointToClient(start), Width = end.X - start.X, Height = end.Y - start.Y });
Control.PointToClient作用
最新推荐文章于 2024-04-08 10:29:02 发布