Freigeben über


Strokes.Scale Method

Scales the Strokes collection 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 Strokes
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 the Strokes collection in the InkCollector object, theInkCollector.

theInkCollector.Ink.Strokes.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 the Strokes collection in the InkCollector object, theInkCollector.

theInkCollector.Ink.Strokes.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

Strokes Class
Strokes Members
Microsoft.Ink Namespace
Strokes.ScaleToRectangle
Microsoft.Ink.Strokes.Transform
Stroke.Scale