vcl-cxgeometry-741a5b22.md
Stores a scale factor for visual elements.
TdxScaleFactor = class(
TObject
)
DevExpress controls use a scale factor to calculate pixel dimensions of DPI-aware forms and visual elements. A scale factor consists of integer numerator and denominator values stored in a TdxScaleFactor instance. The TdxScaleFactor class also implements multiple auxiliary methods that scale geometry.
The list below outlines key members of the TdxScaleFactor class. These members allow you to change the stored scale factor and scale geometry according to the required numerator and denominator values.
DenominatorReturns the scale factor’s denominator.NumeratorReturns the scale factor’s numerator.
ApplyScales specified integer-based (pixel) dimensions according to current numerator and denominator values.ApplyFScales specified floating-point dimensions according to current numerator and denominator values.ChangeMultiplies stored numerator and denominator by specified values.RevertApplies the reverted scale factor to specified integer-based (pixel) dimensions.RevertFApplies the reverted scale factor to specified floating-point dimensions.
AssignAssigns new numerator and denominator values.AssignedAllows you to identify if the scale factor corresponds to unscaled geometry (at 96 DPI).EqualsCompares two scale factors.ListenerAdd | ListenerRemoveManage the list of objects that track scale factor changes.
The following API members reference a TdxScaleFactor object:
TcxScalableComponent.ScaleFactorReturns the component’s scale factor.TdxForm.ScaleFactorReturns the form’s scale factor.TdxCustomForm.ScaleFactorReturns the form’s scale factor.
TObject TdxScaleFactor
See Also