Class DrawingPoint
Encapsulates a Windows.Foundation.Point and an intensity value. This is used, for example, inside an Ink, where the intensity is the pressure that was exerted by the touch device.
Inheritance
Namespace: PSPDFKit.Geometry
Assembly: PSPDFKit.dll
Syntax
public sealed class DrawingPoint
Constructors
DrawingPoint()
Constructs a DrawingPoint at location (0,0) with an intensity of 0.5f.
Declaration
public DrawingPoint()
DrawingPoint(Double, Double)
Constructs a DrawingPoint from two System.Doubles representing the location of the DrawingPoint.
Declaration
public DrawingPoint(double x, double y)
Parameters
Type | Name | Description |
---|---|---|
System.Double | x | The position of the DrawingPoint on the x axis. |
System.Double | y | The position of the DrawingPoint on the y axis. |
DrawingPoint(Double, Double, Single)
Constructs a DrawingPoint from two System.Doubles representing the location of the DrawingPoint and an intensity value between 0.0f and 1.0f representing the pressure that was exerted by the touch device.
Declaration
public DrawingPoint(double x, double y, float intensity)
Parameters
Type | Name | Description |
---|---|---|
System.Double | x | The position of the DrawingPoint on the x axis. |
System.Double | y | The position of the DrawingPoint on the y axis. |
System.Single | intensity | An intensity value between 0.0f and 1.0f representing the pressure that was exerted by the touch device. |
DrawingPoint(Point)
Constructs a DrawingPoint from a Windows.Foundation.Point.
Declaration
public DrawingPoint(Point point)
Parameters
Type | Name | Description |
---|---|---|
Windows.Foundation.Point | point | The point representing the location of the DrawingPoint. |
Properties
Intensity
An intensity value between 0.0f and 1.0f representing the pressure that was exerted by the touch device.
Declaration
public float Intensity { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Point
The point representing the location of the DrawingPoint.
Declaration
public Point Point { get; set; }
Property Value
Type | Description |
---|---|
Windows.Foundation.Point |