TabletPropertyDescriptionCollection.InkToDeviceScaleY Property
Gets the conversion factor for the vertical axis from ink space to digitizer coordinates.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink (in Microsoft.Ink.dll)
Syntax
'Declaration
Public ReadOnly Property InkToDeviceScaleY As Single
'Usage
Dim instance As TabletPropertyDescriptionCollection
Dim value As Single
value = instance.InkToDeviceScaleY
public float InkToDeviceScaleY { get; }
public:
property float InkToDeviceScaleY {
float get ();
}
public function get InkToDeviceScaleY () : float
Property Value
Type: System.Single
The conversion factor for the vertical axis from ink space to digitizer coordinates.
Remarks
The InkToDeviceScaleX and InkToDeviceScaleY properties affect the internal representation of strokes created with the CreateStroke(array<Int32[], TabletPropertyDescriptionCollection) method.
Multiply the y-coordinate in ink space by this property to get the y-coordinate in digitizer units.
Examples
In this example, a TabletPropertyDescriptionCollection collection is created and both the InkToDeviceScaleX property and the InkToDeviceScaleY property retreived.
Dim tpdc As TabletPropertyDescriptionCollection = New TabletPropertyDescriptionCollection()
Dim scaleX As Single = tpdc.InkToDeviceScaleX
Dim scaleY As Single = tpdc.InkToDeviceScaleY
TabletPropertyDescriptionCollection tpdc = new TabletPropertyDescriptionCollection();
float scaleX = tpdc.InkToDeviceScaleX;
float scaleY = tpdc.InkToDeviceScaleY;
Platforms
Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information
.NET Framework
Supported in: 3.0
See Also
Reference
TabletPropertyDescriptionCollection Class