Teckniel Posted May 12, 2021 Share Posted May 12, 2021 (edited) 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. 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 May 13, 2021 by Teckniel topic change Quote Link to comment Share on other sites More sharing options...
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.