Best method for detecting high DPI displays?

Quick question, as I can't find much documentation on best practices for detecting high DPI displays. I saw relevant code in processing.app.ui.Toolkit, but the class has isRetina(), checkRetina(), and highResImages().

This is how I think it should go, but I want to double check:

boolean isHiDPI = Toolkit.isRetina()

Sign In or Register to comment.