MONITOR_DPI_TYPE enumeration

Identifies the dots per inch (dpi) setting for a monitor.

Syntax


typedef enum _MONITOR_DPI_TYPE { 
  MDT_EFFECTIVE_DPI  = 0,
  MDT_ANGULAR_DPI    = 1,
  MDT_RAW_DPI        = 2,
  MDT_DEFAULT        = MDT_EFFECTIVE_DPI
} MONITOR_DPI_TYPE;

Constants

MDT_EFFECTIVE_DPI

The effective DPI. This value should be used when determining the correct scale factor for scaling UI elements. This incorporates the scale factor set by the user for this specific display.

MDT_ANGULAR_DPI

The angular DPI. This DPI ensures rendering at a compliant angular resolution on the screen. This does not include the scale factor set by the user for this specific display.

MDT_RAW_DPI

The raw DPI. This value is the linear DPI of the screen as measured on the screen itself. Use this value when you want to read the pixel density and not the recommended scaling setting. This does not include the scale factor set by the user for this specific display and is not guaranteed to be a supported DPI value.

MDT_DEFAULT

The default DPI setting for a monitor is MDT_EFFECTIVE_DPI.

Remarks

All of these settings are affected by the PROCESS_DPI_AWARENESS of your application

Requirements

Minimum supported client

Windows 8.1 [desktop apps only]

Minimum supported server

Windows Server 2012 R2 [desktop apps only]

Header

ShellScalingApi.h

See also

GetDpiForMonitor

 

 

Show: