Stroke.Scale Method
Scales the Stroke object in the X and Y dimensions.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink (in Microsoft.Ink.dll)
Syntax
'Declaration
Public Sub Scale ( _
scaleX As Single, _
scaleY As Single _
)
'Usage
Dim instance As Stroke
Dim scaleX As Single
Dim scaleY As Single
instance.Scale(scaleX, scaleY)
public void Scale(
float scaleX,
float scaleY
)
public:
void Scale(
float scaleX,
float scaleY
)
public function Scale(
scaleX : float,
scaleY : float
)
Parameters
scaleX
Type: System.SingleThe factor to scale the X dimension of the view transform.
scaleY
Type: System.SingleThe factor to scale the Y dimension of the view transform.
Remarks
Zero-determinant transforms are not supported. This means that calling the Scale method with one of the scales set to zero is not supported.
Examples
In this example, each selected Stroke of an InkOverlay object is scaled by a factor of 2 in the X dimension and 0.75 in the Y dimension
For Each S As Stroke In mInkOverlay.Selection
S.Scale(2.0F, 0.75F)
Next
foreach (Stroke S in mInkOverlay.Selection)
{
S.Scale(2.0f, 0.75f);
}
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