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 void Scale (
float scaleX,
float scaleY
)
public function Scale (
scaleX : float,
scaleY : float
)
Not applicable.
Parameters
- scaleX
The factor to scale the X dimension of the view transform.
- scaleY
The 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.
Example
This C# example applies a scaling factor of 2 in the X dimension and 0.75 in the Y dimension to a Stroke object, theStroke
.
theStroke.Scale(2.0f, 0.75f);
This Microsoft® Visual Basic® .NET example applies a scaling factor of 2 in the X dimension and 0.75 in the Y dimension to a Stroke object, theStroke
.
theStroke.Scale(2.0f, 0.75f)
Platforms
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.
Version Information
.NET Framework
Supported in: 3.0
See Also
Reference
Stroke Class
Stroke Members
Microsoft.Ink Namespace
Renderer.GetViewTransform
Stroke.ScaleToRectangle
Microsoft.Ink.Stroke.Transform
Strokes.Scale