DPI property (Window)
Description
Returns the DPI (dots-per-inch) setting for the window.
Property Value
This is an @Fm-delimited array containing two values: The horizontal (x) DPI and the vertical (y) DPI.
<1> X DPI (horizontal)
<2> Y DPI (vertical)
Property Traits
Development | Runtime | Indexed | Scaled | Synthetic |
---|---|---|---|---|
N/A | Get | No | No | No |
Remarks
Beginning with Windows 8.1 individual monitors can have their own DPI settings. This property returns the DPI for the monitor that the window is currently displayed on, or that the majority of the window is displayed on if using more than one monitor. Prior to this the window DPI is always the same as the SYSTEM DPI property.
The window DPI is combined with the SCALEFACTOR property when calculating scaling attributes.
Example
// Get the window DPI setting dpiXY = Get_Property ( @Window, "DPI" )
See Also
SYSTEM DPI property, DPISCALING property, SCALEFACTOR property.