|
@@ -192,7 +192,8 @@ namespace OTSMeasureApp
|
|
ImgZoomRectangle.Y = originalImgRectangle.Y;
|
|
ImgZoomRectangle.Y = originalImgRectangle.Y;
|
|
|
|
|
|
pictureBox2.Visible = false;
|
|
pictureBox2.Visible = false;
|
|
- Point rulerLocation = new Point(GetZoomedImageRect(picBox).Left-10, GetZoomedImageRect(picBox).Height - (int)(control_Ruler.Height -3));
|
|
|
|
|
|
+ double h = picBox.Height - GetZoomedImageRect(picBox).Height;
|
|
|
|
+ Point rulerLocation = new Point(GetZoomedImageRect(picBox).Left-10, (int)(h / 2+GetZoomedImageRect(picBox).Height - (int)(control_Ruler.Height -3)));
|
|
control_Ruler.Location = rulerLocation;
|
|
control_Ruler.Location = rulerLocation;
|
|
//标尺初始化
|
|
//标尺初始化
|
|
RulerInit();
|
|
RulerInit();
|