mirror of
https://github.com/ShareX/ShareX.git
synced 2024-08-19 12:11:52 +12:00
Added px unit to width, heigth and distance
This commit is contained in:
parent
961605f442
commit
c038a21c40
1 changed files with 1 additions and 1 deletions
|
@ -200,7 +200,7 @@ protected override void Draw(Graphics g)
|
||||||
if (RulerMode)
|
if (RulerMode)
|
||||||
{
|
{
|
||||||
Point endPos = new Point(area.X + area.Width - 1, area.Y + area.Height - 1);
|
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));
|
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);
|
ImageHelpers.DrawTextWithOutline(g, areaText, new PointF(area.X + 15, area.Y + 15), textFont, Color.White, Color.Black);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue