共用方式為


InkPoint 類別

定義

提供用於 建構 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
繼承
Object Platform::Object IInspectable InkPoint
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

備註

版本歷程記錄

Windows 版本 SDK 版本 已新增值
1703 15063 InkPoint (Point,Single,Single,Single,UInt64)
1703 15063 TiltX
1703 15063 傾斜
1703 15063 時間戳記

建構函式

InkPoint(Point, Single)

建立用於建構 InkStroke的基本InkPoint物件。

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

建立用於建構 InkStroke的複雜InkPoint物件。

屬性

Position

InkPoint的 X、Y 座標,位於與裝置無關的圖元中, (DIP) 相對於筆跡區域的左上角。

Pressure

InkPoint數位板表面的接觸壓力。

TiltX

取得平面角度,介於 Y-Z 平面與包含 Y 軸的平面與輸入裝置的座標軸之間。

TiltY

取得 X-Z 平面與包含 X 軸和輸入裝置座標軸的平面之間的平面角度。

Timestamp

取得 InkStroke 的第一個 InkPoint 的時間戳記,或貼上或載入整個 InkStroke 時。

適用於

另請參閱