Back to Devexpress

dxGetScaleFactorForCanvas(TCanvas) Method

vcl-dxdpiawareutils-dot-dxgetscalefactorforcanvas-x28-e84f9e27-x29.md

latest1.3 KB
Original Source

dxGetScaleFactorForCanvas(TCanvas) Method

Returns the scale factor for the specified canvas.

Declaration

delphi
function dxGetScaleFactorForCanvas(const ACanvas: TCanvas): TdxScaleFactor;

Parameters

NameType
ACanvasTCanvas

Returns

Type
TdxScaleFactor

Remarks

Call this global function to obtain the scale factor of a control‘s drawing surface passed as the ACanvas parameter. The dxGetScaleFactorForCanvas function returns the dxDefaultScaleFactor function result instead of the control’s scale factor if the control does not implement the IdxScaleFactor interface.

See Also

dxDPIAwareUtils.dxGetScaleFactor

dxDPIAwareUtils.dxGetScaleFactorForInterface

dxDPIAwareUtils Unit