Java - Finding native Bits Per Point

44 Views Asked by At

I need to find the Bits Per Point, height, width, and refresh rate of the local machine.

I know how to find most of this using java.awt.Toolkit, but the Toolkit.getScreenResolution returns a value in Dots-Per-Inch.

I can't just retool the (fairly massive) entire program to use DPI instead of BPP, and don't entirely know the difference anyway.

Is there a way in java to grab the BPP of the local display?

1

There are 1 best solutions below

0
On

I later found that this can be done using java.awt.GraphicsEnvironment, GraphicsDevice, and DisplayMode

DisplayMode gives the data needed.