The GET_SCREEN_SIZE function returns size, measured in device units, of the screen.
On multi-monitor configurations, the GET_SCREEN_SIZE function returns information for the primary monitor only. For information about other monitors, use the IDLsysMonitorInfo object.
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:
Result = GET_SCREEN_SIZE( [Display_name] [, RESOLUTION=variable] )
Unix-Only Keywords: [, DISPLAY_NAME=string]
Returns a two-element vector of the form [width, height] that represents the dimensions, measured in device units, of the screen.
This argument is only available on UNIX platforms.
A string indicating the name of the X Windows display that should be used to determine the screen size.
This keyword is only available on UNIX platforms.
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 Display_name argument.
Set this keyword equal to a named variable that will contain a two-element vector, [xres, yres], specifying the screen resolution in cm/pixel.