Back to Devexpress

dxCheckDPIValue(Integer) Method

vcl-dxdpiawareutils-dot-dxcheckdpivalue-x28-2822a90a-x29.md

latest1.0 KB
Original Source

dxCheckDPIValue(Integer) Method

Clamps the specified DPI value within the supported interval.

Declaration

delphi
function dxCheckDPIValue(AValue: Integer): Integer;

Parameters

NameType
AValueInteger

Returns

Type
Integer

Remarks

Call this global function to ensure that the DPI value passed as the AValue parameter is within the supported range. The dxCheckDPIValue function returns the DPI value clamped within the range between the dxMinDPI and dxMaxDPI global constant values.

This function is called internally by the TdxSmartGlyph.SourceDPI and TcxBaseImageList.SourceDPI property setters.

See Also

dxDPIAwareUtils Unit