Jump to content

Rectangle Select: Show length of diagonal


Recommended Posts

In the moment 'Rectangle Select' shows in the statusbar

- top/left

- bounding size

- Area size

It would be nice to add the length of the diagonal if units are centimeters or inches.

This would allow to measure easily the distance of two points in the image.

midoras signature.gif

Link to comment
Share on other sites

if you just want to know the length of the diagonal of a rectangle add the length of the longer side with half the length of the shorter side, providing the it is made of right angles this will give you the diagonal

spacesig.png

SARCASM- Just one of the many services I offer free to the public.

Link to comment
Share on other sites

if you just want to know the length of the diagonal of a rectangle add the length of the longer side with half the length of the shorter side, providing the it is made of right angles this will give you the diagonal

That most definitely will not work. The formula is length=√(width²+height²)

xZYt6wl.png

ambigram signature by Kemaru

[i write plugins and stuff]

If you like a post, upvote it!

Link to comment
Share on other sites

To elaborate on that, rectangles are ALWAYS made of right angles, and the diagonal of any convex quadrilateral will always be shorted than the sum of the two pairs of sides either side of it. :)

EDIT: I just realised you said HALF the short side, but it still won't work.

EDIT TWO: d= diagonal, w = width, l = length, d = sqrt(w^2 + l^2) :)

Edited by Rubrica
Link to comment
Share on other sites

To elaborate on that, rectangles are ALWAYS made of right angles, and the diagonal of any convex quadrilateral will always be shorted than the sum of the two pairs of sides either side of it. :)

EDIT: I just realised you said HALF the short side, but it still won't work.

EDIT TWO: d= diagonal, w = width, l = length, d = sqrt(w^2 + l^2) :)

Guys, I know how to calculate it.

To add the length to 'Rectangle Select' would be handy.

Like the size of the area of the rectangle in the statusbar (which is easier to calculate, or? ;-)

midoras signature.gif

Link to comment
Share on other sites

You already have a solution though, listed above. Use the Line tool.

Needs an undo step, a little bit destructive and risky to use this tool.

I know the next one will ask for the length of the border, or the number of colors in the selection, or...

I'm quite often do measuring the size of an area in an image (1:100 drawings). And I'm happy that pdn shows this value. I'm just missing the distance between two points. And it would be nice to use the same non-destructive tool like for the area. Area size is also a bit special.

As I said, it would just be handy.

midoras signature.gif

Link to comment
Share on other sites

We are trying to help you, and all you can say is "let's close this?"

Lose the attitude, and definitely do not tell the moderators how to do their job.

Thread closed at request command of ungrateful jerk.

BY the way, you can also select a transparent color when using the line tool to make your measurements thus preventing the need to undo or use a separate layer.

You're welcome.

xZYt6wl.png

ambigram signature by Kemaru

[i write plugins and stuff]

If you like a post, upvote it!

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...