Vcl.Touch.Gestures.TGestureRecognizer.ScalePoints
Delphi
function ScalePoints(const Points, GesturePoints: array of TPoint; MinScale: Integer; Scaling: Boolean = False): TGesturePointArray; override;
C++
virtual Vcl::Controls::TGesturePointArray __fastcall ScalePoints(const System::Types::TPoint *Points, const int Points_High, const System::Types::TPoint *GesturePoints, const int GesturePoints_High, int MinScale, bool Scaling = false);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Vcl.Touch.Gestures.pas Vcl.Touch.Gestures.hpp |
Vcl.Touch.Gestures | TGestureRecognizer |
Description
Scales the surface described by a set of input points to match that of the expected set of points.
Use ScalePoints to perform scaling of a surface described by a set of input points. The scaling is necessary, because 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. |