草庐IT

RectStartPoint

全部标签

c# - 如何在 C# 中使用鼠标选择 PictureBox.Image 上的区域

我只是想在我的picturebox.image上进行选择,但这比一些烦人的情况更糟。我想到了主图片框上的另一个图片框,但对我来说这似乎太懒惰了。我需要知道是否有办法在我要用鼠标绘制的picturebox.image上创建一个选择区域(这将是半透明的蓝色区域)并且它不应该改变我正在处理的图像。示例://StartRectangle//privatevoidpictureBox1_MouseDown(objectsender,System.Windows.Forms.MouseEventArgse){//Determinetheinitialrectanglecoordinates...R