Back to Devexpress

dxDefaultDPIValues Constant

vcl-dxdpiawareutils-4cef6125.md

latest1.8 KB
Original Source

dxDefaultDPIValues Constant

Deprecated. Stores standard system DPI values.

Declaration

delphi
const dxDefaultDPIValues: array[0..7] of Integer = (96, 120, 144, 168, 192, 216, 240, 288);

Returns

TypeDescription
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 ValueScale Factor[1]Icon Pixel Dimensions[2]
96 ( base )100%16x16
120125%20x20
144150%24x24
168175%28x28
192200%32x32
216225%36x36
240250%40x40
288300%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

  1. DevExpress forms and controls define the active scale factor as integer numerator and denominator values.

  2. Example bitmap icon dimensions.

See Also

dxMaxDPI Global Constant

dxMinDPI Global Constant

dxDPIAwareUtils Unit