Class DrawingPoint
Implements
Namespace: PSPDFKit.Sdk.Models.Geometry
Assembly: Sdk.dll
Syntax
public sealed class DrawingPoint : IDrawingPoint
Constructors
| Edit this page View SourceDrawingPoint()
Constructs a DrawingPoint at location (0,0) with an intensity of 0.5f.
Declaration
public DrawingPoint()
DrawingPoint(PointF)
Constructs a DrawingPoint from a PointF.
Declaration
public DrawingPoint(PointF point)
Parameters
Type | Name | Description |
---|---|---|
PointF | point | The point representing the location of the DrawingPoint. |
DrawingPoint(PointF, float)
Constructs a DrawingPoint of specified location with the specified intensity.
Declaration
public DrawingPoint(PointF point, float intensity = 0.5)
Parameters
Type | Name | Description |
---|---|---|
PointF | point | Location of point. |
float | intensity | Intensity of point. |
DrawingPoint(float, float)
Constructs a DrawingPoint from two floats representing the location of the DrawingPoint.
Declaration
public DrawingPoint(float x, float y)
Parameters
Type | Name | Description |
---|---|---|
float | x | The position of the DrawingPoint on the x axis. |
float | y | The position of the DrawingPoint on the y axis. |
DrawingPoint(float, float, float)
Constructs a DrawingPoint from two floats 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(float x, float y, float intensity)
Parameters
Type | Name | Description |
---|---|---|
float | x | The position of the DrawingPoint on the x axis. |
float | y | The position of the DrawingPoint on the y axis. |
float | intensity | An intensity value between 0.0f and 1.0f representing the pressure that was exerted by the touch device. |
Properties
| Edit this page View SourceIntensity
An intensity value between 0.0f and 1.0f representing the pressure that was exerted by the touch device.
Declaration
[JsonProperty(NamingStrategyType = typeof(CamelCaseNamingStrategy))]
public float Intensity { get; init; }
Property Value
Type | Description |
---|---|
float |
X
X co-ordinate of the point.
Declaration
[JsonProperty(NamingStrategyType = typeof(CamelCaseNamingStrategy))]
public float X { get; init; }
Property Value
Type | Description |
---|---|
float |
Y
Y co-ordinate of the point.
Declaration
[JsonProperty(NamingStrategyType = typeof(CamelCaseNamingStrategy))]
public float Y { get; init; }
Property Value
Type | Description |
---|---|
float |