FMX.Gestures.TCustomGestureRecognizer.ScalePoints
Delphi
function ScalePoints(const Points, GesturePoints: array of TPointF; MinScale: Integer;
Scaling: Boolean = False): TGesturePointArray; virtual;
C++
virtual Fmx::Types::TGesturePointArray __fastcall ScalePoints(const System::Types::TPointF *Points, const System::NativeInt Points_High, const System::Types::TPointF *GesturePoints, const System::NativeInt GesturePoints_High, int MinScale, bool Scaling = false);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | FMX.Gestures.pas FMX.Gestures.hpp |
FMX.Gestures | TCustomGestureRecognizer |
Description
Scales the surface described by a set of input points to match that of the expected set of points.
Override ScalePoints in descendant classes to implement proper scaling of a surface described by a set of input points. The scaling is necessary, since the expected set of points may describe a smaller or a bigger surface, different than the one described by the input points. ScalePoints returns an array of scaled input points. The following table describes the parameters expected by ScalePoints.
Parameter | Description |
---|---|
Points |
An array of input points to be scaled. |
MinScale |
The minimum allowed scale factor. If the scaling factor is below this value, no scaling is performed. |
Scaling |
Specifies whether the scaling is asymmetrical. |