InkPoint Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public ref class InkPoint sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.UI.Input.Inking.IInkPointFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class InkPoint final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Activatable(Windows.UI.Input.Inking.IInkPointFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class InkPoint final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Activatable(Windows.UI.Input.Inking.IInkPointFactory, 65536, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.Activatable(Windows.UI.Input.Inking.IInkPointFactory2, 262144, "Windows.Foundation.UniversalApiContract")]
class InkPoint final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.UI.Input.Inking.IInkPointFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class InkPoint
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.UI.Input.Inking.IInkPointFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class InkPoint
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.UI.Input.Inking.IInkPointFactory), 65536, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.UI.Input.Inking.IInkPointFactory2), 262144, "Windows.Foundation.UniversalApiContract")]
public sealed class InkPoint
function InkPoint(position, pressure)
function InkPoint(position, pressure, tiltX, tiltY, timestamp)
Public NotInheritable Class InkPoint
- Inheritance
- Attributes
Windows requirements
Device family |
Windows 10 (introduced in 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
Remarks
Version history
Windows version | SDK version | Value added |
---|---|---|
1703 | 15063 | InkPoint(Point,Single,Single,Single,UInt64) |
1703 | 15063 | TiltX |
1703 | 15063 | TiltY |
1703 | 15063 | Timestamp |
Constructors
InkPoint(Point, Single, Single, Single, UInt64) |
Creates a complex InkPoint object used in the construction of an InkStroke. |
InkPoint(Point, Single) |
Creates a basic InkPoint object used in the construction of an InkStroke. |
Properties
Position |
The X, Y coordinates of the InkPoint, in device-independent pixel (DIP) relative to the upper left-hand corner of the inking area. |
Pressure |
The pressure of the contact on the digitizer surface for the InkPoint. |
TiltX |
Gets the plane angle between the Y-Z plane and the plane containing the Y axis and the axis of the input device. |
TiltY |
Gets the plane angle between the X-Z plane and the plane containing the X axis and the axis of the input device. |
Timestamp |
Gets the timestamp for the first InkPoint of an InkStroke, or when an entire InkStroke is pasted or loaded. |
Applies to
See also
- Pen and stylus interactions
- Get started: Support ink in your UWP app
- Ink analysis sample (basic) (C#)
- Ink handwriting recognition sample (C#)
- Save and load ink strokes from an Ink Serialized Format (ISF) file
- Save and load ink strokes from the clipboard
- Ink toolbar location and orientation sample (basic)
- Ink toolbar location and orientation sample (dynamic)
- Coloring book sample
- Family notes sample
- Inking sample (JavaScript)
- Simple inking sample (C#/C++)
- Complex inking sample (C++)
- Ink analysis sample