Table of Contents

Class WebPinchArgs

Arguments that define additional behavior for the Pinch method.

Namespace: HP.LFT.SDK.Web
Assembly: HP.LFT.SDK.dll
Syntax
public class WebPinchArgs : TimedGestureArgs

Constructors

WebPinchArgs(double)

Initializes a new instance of the WebPinchArgs class with default arguments (pinches from the center of the object in 1 seconds).

Declaration
public WebPinchArgs(double scale)
Parameters
Type Name Description
double scale

The zoom scale resulting from the pinch gesture. This number is the ratio between the distance between the fingers at the end of the pinch gesture to the distance between the fingers at the beginning of the pinch gesture. For example, if you were to touch a screen with your fingers 6 cm apart, and pinch until your fingers were 3 cm apart, the scale would be 0.5. Likewise, if your fingers were 3 cm apart, and you pinch until your fingers are 6 cm apart, the scale would be 2.

Properties

Scale

The zoom scale resulting from the pinch gesture. This number is the ratio between the distance between the fingers at the end of the pinch gesture to the distance between the fingers at the beginning of the pinch gesture.

For example, if you were to touch a screen with your fingers 6 cm apart, and pinch until your fingers were 3 cm apart, the scale would be 0.5. Likewise, if your fingers were 3 cm apart, and you pinch until your fingers are 6 cm apart, the scale would be 2.

Declaration
public double Scale { get; set; }
Property Value
Type Description
double