Bagikan melalui


InkPoint Kelas

Definisi

Menyediakan data input mentah untuk satu titik yang digunakan dalam pembangunan InkStroke.

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
Warisan
Object Platform::Object IInspectable InkPoint
Atribut

Persyaratan Windows

Rangkaian perangkat
Windows 10 (diperkenalkan dalam 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (diperkenalkan dalam v1.0)

Keterangan

Riwayat versi

Versi Windows Versi SDK Nilai ditambahkan
1703 15063 InkPoint(Point,Single,Single,Single,UInt64)
1703 15063 TiltX
1703 15063 TiltY
1703 15063 Tanda waktu

Konstruktor

InkPoint(Point, Single)

Membuat objek InkPoint dasar yang digunakan dalam konstruksi InkStroke.

InkPoint(Point, Single, Single, Single, UInt64)

Membuat objek InkPoint kompleks yang digunakan dalam konstruksi InkStroke.

Properti

Position

Koordinat X, Y dari InkPoint, dalam piksel independen perangkat (DIP) relatif terhadap sudut kiri atas area penintaan.

Pressure

Tekanan kontak pada permukaan digitizer untuk InkPoint.

TiltX

Mendapatkan sudut bidang antara bidang Y-Z dan bidang yang berisi sumbu Y dan sumbu perangkat input.

TiltY

Mendapatkan sudut bidang antara bidang X-Z dan bidang yang berisi sumbu X dan sumbu perangkat input.

Timestamp

Mendapatkan tanda waktu untuk InkPoint pertama dari InkStroke, atau ketika seluruh InkStroke ditempelkan atau dimuat.

Berlaku untuk

Lihat juga