InkPoint 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
为 用于构造 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
- 继承
- 属性
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 (点,Single,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 时。 |