Sign in to follow this  
Martin Osieka

Measure Selection (Tools Effect)

Recommended Posts

Plugin which allows the digital image editor "Paint.NET" to take measurements of the active selection or of the whole image. This works for regular shapes like rectangles, for irregular ones, and for not connected shapes. You may set unit, dpi and scale if you have to do measurements in a map or a technical drawing.

Measured values are

  • area and centroid of the selection
  • area, width, height, diagonal, and angles of the bounding rectangle.

So if you like to measure the distance between two points in the image just use a selection rectangle form one point to the other and check the value for 'Diagonal' in Measure Selection. You may use the resulting angle value to straighten your image using the rotate tool. Or if you need the area of a cirle just use a circle selection.
 

Download >> Measure Selection version v1.5 (26.3.2014)

 

Example

 

MeasureSelection.Dialog.jpg

Installation

Unzip "MeasureSelection.Effect vX.X.zip" and copy the following files

  • MeasureSelection.dll, MeasureSelection.dlc
    into the Effects folder of your Paint.NET installation.
    A typical location is "C:\Program Files\Paint.NET\Effects".
  • OptionBasedLibrary vY.Y.dll, OptionBasedLibrary vY.Y.dlc
    into the folder of your Paint.NET installation (not into the Effect folder!).
    A typical location is "C:\Program Files\Paint.NET".

After a restart of Paint.NET you will find the plugin under Menu->Effects->Tools.

 

Compatibility

Paint.NET 3.5.11 and 4.0Beta
 

Language support

  • English
  • Deutsch: Ist in Paint.NET als Sprache 'Deutsch' ausgewählt, dann
    sind auch die Dialogtexte und die Texte auf der erzeugten Seite in
    deutscher Sprache.
  • You may add your own translation to MeasureSelection.dlc

Package content

  • The effect dll file
  • The effect dlc file (unicode txt file containing keywords)
  • The OptionBasedLibrary dll file
  • The OptionBasedLibrary dlc file (unicode txt file containing keywords)
  • A readme file
  • An image of the effect dialog

Instructions

  1. Do or do not a selection in an image
     
  2. Open plugin (Menu->Effects->Tools->Measure Selection...)
     
  3. Select unit, resolution, and scale value which will be used to show the results of the measurement.
     
  4. If you close the dialog using OK, the settings of unit, resolution, and scale will be saved and used in the next call of the plugin.

Release History

 

1.5 (26.3.2014)
- Added top/left and bottom/right coordinate
- Updated to OptionBasedLibrary 0.6

1.4 (15.10.2013)
- Patches to support Paint.NET 4.0

1.3 (12.10.2013)
- Added angles of the diagonal inside of the minimal bounding rectangle.
- Replaced simple text controls with a drawing showing the results.

1.2 (9.5.2013)
- Added 'Centroid of selection' information
- Moved the OptionBased part of the plugin to a separate dll.

1.1 (2.4.2013)
- Renamed MeasureSelection.txt to MeasureSelection.dlc
- Added optional default value keys to the .dlc file
- Moved some information from code to the assembly part of the dll

1.0 (1.4.2013)
- Initial realease based on OptionBasedEffect library.
 

Edited by Ego Eram Reputo
Added link to zipped DLL

Share this post


Link to post
Share on other sites

Works like a charm.  Useful addition to my toolbox.  Thanks Martin! :)

 

Danke für die Blumen (this will be difficult to translate because the meaning depends on intonation ;-)

 

Because I'm lazy I added the possibility to set the default values in the configuration file (I always need Meter, 300dpi, 1:50)

So there is an update:

 

1.1 (2.4.2013)

- Renamed MeasureSelection.txt to MeasureSelection.dlc (please delete MeasureSelection.txt)

- Added optional default value keys to the .dlc file

- Moved some information from code to the assembly part of the dll

 

I hope Rick will include - at some time - the dpi value of the image to the Environment of Effects.

And to add a scale value to the resize dialog or somewhere else would help to get the scaled values in the status line during selection.

Share this post


Link to post
Share on other sites

Update 1.2 (9.5.2013)
- Added 'Centroid of selection' information
- Moved the OptionBased part of the plugin to a separate dll.

 

You may change the submenu of the effect in the MeasureSelection.dlc file (key MeasureSelection.SubmenuName)

Share this post


Link to post
Share on other sites

...

 

You may change the submenu of the effect in the MeasureSelection.dlc file (key MeasureSelection.SubmenuName)

 

It this functionality wise?  Why would a user need to move the location?  I don't mean to be criticizing - just would like to know your thinking on this 'feature'.

Share this post


Link to post
Share on other sites

It this functionality wise?  Why would a user need to move the location?  I don't mean to be criticizing - just would like to know your thinking on this 'feature'.

 

Fair comments are always fine. This is a never ending discussion and there are a lot of pros and cons. Typically I'm more on the pro side.

 

But the reason for this is easy. If you allow the user to translate the plugin via the the .dlc file then you have to allow to translate the submenu name too. Changing the location is a side-effect of the translation feature.

 

BTW: It is possible to add one of standard Paint.NET names which requests Paint.NET to do the translation. I.e.

   MeasureSelection.SubmenuName=SubmenuNames.Render

 

We may open a discussion thread about OptionBasedLibrary features and discuss it there.

Share this post


Link to post
Share on other sites

Thank you for all your hard work in writing plugins to make crating images that much easier :D

 

Thanks. Just sharing a little bit with the community.

Update 1.5 (26.3.2014)

- Added top/left and bottom/right coordinate

- Updated to OptionBasedLibrary 0.6

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this