Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the conversion factor for the horizontal axis from ink space to digitizer coordinates.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink (in Microsoft.Ink.dll)
Syntax
'Declaration
Public ReadOnly Property InkToDeviceScaleX As Single
'Usage
Dim instance As TabletPropertyDescriptionCollection
Dim value As Single
value = instance.InkToDeviceScaleX
public float InkToDeviceScaleX { get; }
public:
property float InkToDeviceScaleX {
float get ();
}
public function get InkToDeviceScaleX () : float
Property Value
Type: System.Single
The conversion factor for the horizontal 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 x-coordinate in ink space by this property to get the x-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