dxDefaultDPIValues Constant
Stores standard system DPI values.
Declaration
const dxDefaultDPIValues: array[0..7] of Integer = (96, 120, 144, 168, 192, 216, 240, 288);
Returns
Type | Description |
---|---|
array[0..7] of Integer | The array of standard DPI values. |
Remarks
All DPI values defined in the dxDefaultDPIValues
global constant correspond to the following scale factor values:
DPI Value | Scale Factor[1] | Icon Pixel Dimensions[2] |
---|---|---|
96 (base) |
100% |
16x16 |
120 |
125% |
20x20 |
144 |
150% |
24x24 |
168 |
175% |
28x28 |
192 |
200% |
32x32 |
216 |
225% |
36x36 |
240 |
250% |
40x40 |
288 |
300% |
48x48 |
TdxForm.UpdateImageLists and TdxCustomForm.UpdateImageLists procedures use the dxDefaultDPIValues
global constant to switch between multiple bitmap sets designed for different target DPI values.
Tip
This image list replacement technique is deprecated. We recommend that you use only SVG images as UI icons in projects that target multi-monitor mixed-DPI environments.
Footnotes
-
DevExpress forms and controls define the active scale factor as integer numerator and denominator values.
-
Example bitmap icon dimensions.
See Also