GET_SCREEN_SIZE function returns a two-element vector of the form [
] that represents the dimensions, measured in device units, of the screen.
Result = GET_SCREEN_SIZE(
Display_name (X Only)
A string indicating the name of the X WIndows display that should be used to determine the screen size.
DISPLAY_NAME (X Only)
Set this keyword equal to a string indicating the name of the X WIndows display that should be used to determine the screen size. Setting this keyword is equivalent to setting the optional
Set this keyword equal to a named variable that will contain a two-element vector,
], specifying the screen resolution in cm/pixel.
You can find the dimensions and screen resolution of your screen by entering the following:
dimensions = GET_SCREEN_SIZE(RESOLUTION=resolution)
PRINT, dimensions, resolution
For the screen on which this was tested, IDL prints: