Skip to main content

dxGetScaleFactorForCanvas(TCanvas) Method

Returns the scale factor for the specified canvas.

Declaration

function dxGetScaleFactorForCanvas(const ACanvas: TCanvas): TdxScaleFactor;

Parameters

Name Type
ACanvas TCanvas

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