Skip to main content

dxDPIAwareUtils Unit

Interfaces

Name Description
IdxSourceDPI Allows a DevExpress control to obtain the source DPI value of an image stored within the image list or container.
IdxSourceSize Exposes the function returning the content-independent dimensions of an image container.

Enums

Name Description
TdxProcessDpiAwareness Enumerates process DPI awareness modes.

Methods

Name Description
dxAssignFont(TFont,TFont,TdxScaleFactor,TdxScaleFactor) Assigns the source font’s settings to the target font and scales it.
dxAssignFont(TFont,TFont,Integer,Integer)
dxCheckDPIValue(Integer) Clamps the specified DPI value within the supported interval.
dxDefaultScaleFactor Returns the default desktop scale factor.
dxDesktopScaleFactor Returns the scale factor corresponding to the current monitor or system DPI.
dxGetCurrentDPI(TComponent) Returns the DPI value at which the specified form or component is displayed.
dxGetCurrentScaleFactor(TComponent,Integer,Integer) Returns the scale numerator and denominator used to display the specified form or component.
dxGetDesktopDPI Returns the current system or screen DPI value.
dxGetFontHeight(Integer,TdxScaleFactor) Calculates the font pixel height from the specified font size for a target scale factor.
dxGetFontHeightForDefaultDPI(Integer,Integer) Returns the font pixel height for the specified font size at the specified monitor DPI.
dxGetFormDPI(TCustomForm) Returns the specified form’s DPI.
dxGetMonitorDPI(THandle)
dxGetMonitorDPI(TPoint) Returns the specified monitor device’s DPI.
dxGetMonitorDPI(TMonitor)
dxGetProcessDpiAwareness Identifies the DPI awareness mode of the current or specified process.
dxGetProcessDpiAwareness(THandle,TdxProcessDpiAwareness)
dxGetProcessDpiAwareness(THandle)
dxGetScaleFactor(TObject) Returns the specified component’s scale factor.
dxGetScaleFactorForCanvas(TCanvas) Returns the scale factor for the specified canvas.
dxGetScaleFactorForInterface(IUnknown) Returns the specified component’s scale factor.
dxGetSystemDPI Returns the system DPI value.
dxGetSystemMetrics(Integer,TdxScaleFactor) Returns the specified system metric or configuration setting (in pixels).
dxGetTargetDPI(TComponent) Returns the target DPI for scaling the specified component (control).
dxIsProcessDPIAware Identifies if the current process is DPI-aware.
dxSetProcessDpiAwareness(TdxProcessDpiAwareness) Enables the specified DPI awareness mode for the current process.
dxSystemScaleFactor Returns the scale factor corresponding to the current system DPI.
dxTryGetScaleFactorForControl(TControl,TdxScaleFactor) Attempts to retrieve the specified control‘s scale factor.

Constants

Name Description
dxDefaultDPI Specifies the default monitor DPI value.
dxDefaultDPIValues Specifies the set of standard system DPI values.
dxMaxDPI Specifies the maximum supported monitor DPI value.
dxMinDPI Specifies the minimum supported monitor DPI value.