Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

dxDefaultDPIValues Constant

Stores standard system DPI values.

#Declaration

Delphi
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
  1. DevExpress forms and controls define the active scale factor as integer numerator and denominator values.

  2. Example bitmap icon dimensions.

See Also