From c038a21c40712adde893b4aed4c4b76b3ba85067 Mon Sep 17 00:00:00 2001 From: McoreD Date: Sat, 12 Apr 2014 16:57:16 +0800 Subject: [PATCH] Added px unit to width, heigth and distance --- ScreenCaptureLib/Forms/RectangleRegion.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ScreenCaptureLib/Forms/RectangleRegion.cs b/ScreenCaptureLib/Forms/RectangleRegion.cs index 1c7f768a0..07c6b218f 100644 --- a/ScreenCaptureLib/Forms/RectangleRegion.cs +++ b/ScreenCaptureLib/Forms/RectangleRegion.cs @@ -200,7 +200,7 @@ protected override void Draw(Graphics g) if (RulerMode) { Point endPos = new Point(area.X + area.Width - 1, area.Y + area.Height - 1); - areaText = string.Format("X: {0} / Y: {1} / X2: {2} / Y2: {3}\nWidth: {4} / Height: {5}\nDistance: {6:0.00} / Angle: {7:0.00}°", area.X, area.Y, endPos.X, endPos.Y, + areaText = string.Format("X: {0} / Y: {1} / X2: {2} / Y2: {3}\nWidth: {4} px / Height: {5} px\nDistance: {6:0.00} px / Angle: {7:0.00}°", area.X, area.Y, endPos.X, endPos.Y, area.Width, area.Height, MathHelpers.Distance(area.Location, endPos), MathHelpers.LookAtDegree(area.Location, endPos)); ImageHelpers.DrawTextWithOutline(g, areaText, new PointF(area.X + 15, area.Y + 15), textFont, Color.White, Color.Black); }