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

dxGetScaleFactorForCanvas(TCanvas) Method

Returns the scale factor for the specified canvas.

#Declaration

Delphi
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