pxRuler can measure the height and/or width of any stuff on screen. Units are pixels - hence the name
Just decompress the attached pxruler script, make it executable and run it.
It will show a dialog with 2 modes to measure distances:
Distance: Requires to click 2 points on screen. In many cases more convenient than a ruler.
Ruler: Shows a ruler as wide as the screen. Can be rotated 90 degrees with key R.
Key D will display the Distance dialog.
Key F1 provides further explanations.
The ruler needs to have focus in order to accept keyboard input, Clicking on the ruler before pushing any of the shortcut keys will ensure that keystrokes are recognized. .
For convenience I also attach a .pet archive. It will install the script to /usr/bin and add a menu item to the Graphics menu.
Tip: To skip the initial dialog change the first line of the script from MODE=start to MODE=measure
The script will start with a crosshair cursor.
Changelog
2021-10-22 vers.2.0
- added option to measure distance manually by clicking 2 points on screen
2020-08-19 vers.1.1
- fixed issue with most recent svg libs
- fixed help text
- changed shell from busybox ash to bash sh
2020-07-18 vers.1.0
- first edition