Strokes.Scale Method
Strokes.Scale Method |
Scales the Strokes collection 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.
Exceptions
ObjectDisposedException : The Strokes collection is disposed.
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 and0.75
in the Y dimension to the Strokes collection in the InkCollector object, theInkCollector.theInkCollector.Ink.Strokes.Scale(2.0f, 0.75f);
[VB.NET]
This Microsoft® Visual Basic® .NET example applies a scaling factor of
2
in the X dimension and0.75
in the Y dimension to the Strokes collection in the InkCollector object, theInkCollector.theInkCollector.Ink.Strokes.Scale(2.0f, 0.75f)
See Also