Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
Strokes Class
Strokes Methods
 Scale Method
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
Strokes..::.Scale Method

Scales the Strokes collection in the X and Y dimensions.

Namespace:  Microsoft.Ink
Assembly:  Microsoft.Ink (in Microsoft.Ink.dll)
Visual Basic (Declaration)
Public Sub Scale ( _
    scaleX As Single, _
    scaleY As Single _
)
Visual Basic (Usage)
Dim instance As Strokes
Dim scaleX As Single
Dim scaleY As Single

instance.Scale(scaleX, scaleY)
C#
public void Scale(
    float scaleX,
    float scaleY
)
Visual C++
public:
void Scale(
    float scaleX, 
    float scaleY
)
JScript
public function Scale(
    scaleX : float, 
    scaleY : float
)

Parameters

scaleX
Type: System..::.Single
The factor to scale the X dimension of the view transform.
scaleY
Type: System..::.Single
The factor to scale the Y dimension of the view transform.

Zero-determinant transforms are not supported. This means that calling the Scale method with one of the scales set to zero is not supported.

In this example, a scaling factor of 2 in the X dimension and of 0.75 in the Y dimension is applied to the Strokes collection of an InkOverlay object.

Visual Basic
' Access to the Strokes property returns a copy of the Strokes object.
' This copy must be implicitly (via using statement) or explicitly
' disposed of in order to avoid a memory leak.
Using allStrokes As Strokes = mInkOverlay.Ink.Strokes
    allStrokes.Scale(2.0F, 0.75F)
End Using
C#
// Access to the Strokes property returns a copy of the Strokes object.
// This copy must be implicitly (via using statement) or explicitly
// disposed of in order to avoid a memory leak.
using (Strokes allStrokes = mInkOverlay.Ink.Strokes)
{
    allStrokes.Scale(2.0f, 0.75f);
}

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.

.NET Framework

Supported in: 3.0
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker