Class DrawingPoint

Inheritance
DrawingPoint
Implements
Namespace: PSPDFKit.Sdk.Models.Geometry
Assembly: Sdk.dll
Syntax
public sealed class DrawingPoint : IDrawingPoint

Constructors

| Edit this page View Source

DrawingPoint()

Constructs a DrawingPoint at location (0,0) with an intensity of 0.5f.

Declaration
public DrawingPoint()
| Edit this page View Source

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.

| Edit this page View Source

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.

| Edit this page View Source

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.

| Edit this page View Source

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 Source

Intensity

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
| Edit this page View Source

X

X co-ordinate of the point.

Declaration
[JsonProperty(NamingStrategyType = typeof(CamelCaseNamingStrategy))]
public float X { get; init; }
Property Value
Type Description
float
| Edit this page View Source

Y

Y co-ordinate of the point.

Declaration
[JsonProperty(NamingStrategyType = typeof(CamelCaseNamingStrategy))]
public float Y { get; init; }
Property Value
Type Description
float

Implements

IDrawingPoint