Jump to content

Sliders unit pixel/mm/inch


Recommended Posts

Hey Guys

So far so good, thanks!

Been using Paint.net for a few years now and really enjoying.

Have a question though related to the plugin...

The grid seems to be in pixels. I'm working on a project at the moment where I'm using "mm" but the grid and ruler don't match up anymore. Yeah yeah, I know I should be using autocad.

Is is possible to change the grid units in mm?

Thanks in advance

I think it could be a good idea, then just after that I said to myself "Why should I do this only for the grid plugin? This problem is more general..."

BTW :

1.What do you think about it?

2.Does anyone know if there is a simple possibility for that?

Link to comment
Share on other sites

No, I was just wondering how we could easily have some sliders in plugins working with the unit instead of only pixel.

The point is to obtain the DPI in order to do the right conversion.

The question is : should we do the routine for each of this sliders or could we have something more standard?

Thanks

Link to comment
Share on other sites

Well unit conversion is just some simple math. ~2.54 cm per inch is the starting point. 100 cm per meter. 10 mm per cm. 12 in per foot.

I already have some conversion methods on the Document class, but they could easily be pushed into a more general purpose utility class.

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

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