Jump to content

[Advice] Real world measurements ...


Teckniel
 Share

Recommended Posts

Hello,
I'm creating a small cad like application and looking for some advice on how to implement drawing a line  in mm/cm/m.
window.thumb.png.ed08bb598e08fb4362b0a19620c9fd4f.png

what i have for the moment is a container that holds  a other container that is the drawing board.
I want the drawing board to have the size of a a4 (later to print/plot to a  printer)
The Line  drawing function is in pixels for the moment but i want to be able to draw it in mm

I Guess i have to get the users screen dpi and covert it to the needed size of targeted format?

Like for example:

                         A Users screen has a dpi/ppi of 300
                         So the A4 format = 2480px x 3508px


But now i want to draw a line that is 5 meter long how would i go about that?
I Guess i have to take the total line length convert it to pixels and apply scaling?
I would like to have some advice on how to approch this examples also welcome ofc.

 

Thanks in advance!

 

 

 

Edited by Teckniel
topic change
Link to comment
Share on other sites

  • Teckniel changed the title to [Advice] Real world measurements ...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...