dcsimg

How can I get the pixels per inch for my screen?

Jon Wingfield

Take a look at the java.awt.Toolkit method getScreenResolution().
Usage:


int dotsPerInch = Toolkit.getDefaultToolkit().getScreenResolution();