Tell me, how can I set the size of the image in WinForms in millimeters?
It is necessary for the image to keep its size regardless of its size and screen resolution. The option with a certain percentage of the screen area is not suitable.
Tell me, how can I set the size of the image in WinForms in millimeters?
It is necessary for the image to keep its size regardless of its size and screen resolution. The option with a certain percentage of the screen area is not suitable.
Think about this:
And now let's look here: 200 / (1280/100) = 15.625% at 200 / (800/100) = 25%. Incredible, isn't it? Only if you remember that there is such a thing called “calculation error” and, do you know, what error will give 5 division operations instead of two?
True, if you get a grasp of your question, then such an action is planned:
Something like this. You can make amendments, this is the first thing that comes to mind. Now it is worth formalizing how to calculate the value of the “ideal monitor” instead of a constant, but so far nothing climbs into your head.
wiki wake up :)
ps: dex says everything correctly in the comment to the question.
pss: if it comes to the printer, then it seems you can put the PPI on your own, well, and do the appropriate calculations
Source: https://ru.stackoverflow.com/questions/10469/