PacketProperty.NormalPressure - поле
Обновлен: Ноябрь 2007
The Guid for the PacketProperty object that represents pressure of the pen tip perpendicular to the tablet surface.
Пространство имен: Microsoft.Ink
Сборка: Microsoft.Ink (в Microsoft.Ink.dll)
Синтаксис
'Декларация
Public Shared ReadOnly NormalPressure As Guid
'Применение
Dim value As Guid
value = PacketProperty.NormalPressure
public static readonly Guid NormalPressure
public:
static initonly Guid NormalPressure
public static final Guid NormalPressure
public static final var NormalPressure : Guid
Значение поля
Тип: System.Guid
The Guid that identifies the packet property for pressure of the pen tip perpendicular to the tablet surface.
Заметки
The greater the pressure on the pen tip, the more ink that is drawn.
The NormalPressure field represents pressure perpendicular to the plane of the tablet surface; the TangentPressure field represents pressure along the plane of the tablet surface.
Примеры
In this example, a TabletPropertyMetrics object is created for the NormalPressure packet property and used to instantiate a TabletPropertyDescription object.
Dim defTablet As Tablet = New Tablets().DefaultTablet
Dim Metrics As TabletPropertyMetrics = defTablet.GetPropertyMetrics(PacketProperty.NormalPressure)
Dim tabletPropDesc As TabletPropertyDescription = New TabletPropertyDescription(PacketProperty.NormalPressure, Metrics)
' metrics now accessible via the TabletPropertyMetrics property
Dim min As Integer = tabletPropDesc.TabletPropertyMetrics.Minimum
Tablet defTablet = new Tablets().DefaultTablet;
TabletPropertyMetrics Metrics = defTablet.GetPropertyMetrics(PacketProperty.NormalPressure);
TabletPropertyDescription tabletPropDesc = new TabletPropertyDescription(PacketProperty.NormalPressure, Metrics);
// metrics now accessible via the TabletPropertyMetrics property
int min = tabletPropDesc.TabletPropertyMetrics.Minimum;
Платформы
Windows Vista
Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.
Сведения о версии
.NET Framework
Поддерживается в версии: 3.0
См. также
Ссылки
Microsoft.Ink - пространство имен
PacketProperty.TangentPressure
InkCollector.DesiredPacketDescription