pixel per Inch

  • Thread starter Thread starter Thomas Kehl
  • Start date Start date
T

Thomas Kehl

Hi!

Is there anywhere a possibility to calculate the number of pixels/inch on
the current screen?

I have a Length. Now, i have to calculate, How many pixel this Length is on
the current screen.

Does anyone have an idea?

Thomas
 
use the Bounds property of System.Windows.Forms.Screen class.
 
If you have a Graphics object (eg from a PaintEventArgs), you can use the
DpiX and DpiY properties.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top