次の方法で共有


Stroke.Scale Method

Stroke.Scale Method

Scales the Stroke object in the X and Y dimensions.

Definition

Visual Basic .NET Public Sub Scale( _
ByVal scaleX As Single, _
ByVal scaleY As Single _
)
C# public void Scale(
float scaleX,
float scaleY
);
Managed C++ public: void Scale(
float *scaleX,
float *scaleY
);

Parameters

scaleX System.Single. The factor to scale the X dimension of the view transform.
scaleY System.Single. 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.

Examples

[C#]

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);
                

[VB.NET]

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)
                

See Also