mirror of
https://github.com/ShareX/ShareX.git
synced 2024-07-15 19:36:38 +12:00
Added px unit to width, heigth and distance
This commit is contained in:
parent
961605f442
commit
c038a21c40
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue