Jump to content
How to Install Plugins ×

Measure Selection (Tools Effect)


midora

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 >>    MeasureSelection.Effect v1.5.zip

 

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".

    Mod note: The OptionBasedLibrary .dll and .dlc are now required to be placed in the Effects folder.


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

 

Compatibility

Paint.NET 3.5.11+
 

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 make 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 release based on OptionBasedEffect library.


 

  • Like 1
  • Upvote 1

midoras signature.gif

Link to comment
Share on other sites

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

Link to comment
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.

midoras signature.gif

Link to comment
Share on other sites

  • 1 month later...

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)

midoras signature.gif

Link to comment
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'.

Link to comment
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.

midoras signature.gif

Link to comment
Share on other sites

Sound thinking on the translation issue! I hadn't thought of that.

Link to comment
Share on other sites

  • 3 months later...
  • 1 month later...

Update 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.
 

midoras signature.gif

Link to comment
Share on other sites

  • 5 months later...

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

 

midoras signature.gif

Link to comment
Share on other sites

  • 3 years later...

Does anyone have a copy of the v1.5 zip?

Link to comment
Share on other sites

Thank you @Djisves! I'll add it this evening.

Link to comment
Share on other sites

  • 2 years later...
  • 2 months later...
3 hours ago, Djisves said:

The download link on the first post does not work.

The one on my post above does.

 

Thanks @Djisves I have added your working link to the first page.  You are going to find, as you've been away for a while, that a lot of links to Plugins may not work as folks, like @Martin Osieka who was also @midora has been gone from the forum for years.

30b8T8B.gif

How I made Jennifer & Halle in Paint.net

My Gallery | My Deviant Art

"Rescuing one animal may not change the world, but for that animal their world is changed forever!" anon.

 
Link to comment
Share on other sites

  • 2 months later...
  • 2 years later...

Hello, I installed this Tool, as I'm advised, in my Paintnet (v.4.3.12) but the Tools doesn't appear in Effects->Tools window (I've restarted the programm, even the pc)
I've been noticed about the OptionBasedLibrary V0.6 files issue, (I've put them in Files folder, but even in the Paintnet folder nothing is working)

What I'm doing wrong?

(thanx in advance)

Edited by STELIOSCHRISTODOULOU
Link to comment
Share on other sites

2 hours ago, STELIOSCHRISTODOULOU said:


What I'm doing wrong?

 

Nothing.  I too am having trouble seeing the Plugin in v.5.0.1.  We must wait for @midora to see this.

30b8T8B.gif

How I made Jennifer & Halle in Paint.net

My Gallery | My Deviant Art

"Rescuing one animal may not change the world, but for that animal their world is changed forever!" anon.

 
Link to comment
Share on other sites

2 hours ago, STELIOSCHRISTODOULOU said:

Hello, I installed this Tool, as I'm advised, in my Paintnet (v.4.3.12) but the Tools doesn't appear in Effects->Tools window (I've restarted the programm, even the pc)
I've been noticed about the OptionBasedLibrary V0.6 files issue, (I've put them in Files folder, but even in the Paintnet folder nothing is working)

What I'm doing wrong?

(thanx in advance)

 

You'll need to make sure you're using the latest version of Paint.NET, which is currently 5.0.1. There is no support for older versions.

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

20 hours ago, Rick Brewster said:

 

You'll need to make sure you're using the latest version of Paint.NET, which is currently 5.0.1. There is no support for older versions.

As I've noticed, I'm using 4.03.12 as it runs on a 32bit system. As far as I know, 5.0 runs only on 64bit, correct?

 

Edited by STELIOSCHRISTODOULOU
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...