Renderer.Scale Method
Renderer.Scale Method |
Scales the view transform 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 ink in the view transform. scaleY System.Single. The factor to scale the Y dimension of the ink in the view transform.
Remarks
This overload automatically applies the scale factors to the width of the drawing attributes of the ink. To choose whether or not to apply scaling factors to the width of the ink, use the Scale(Single,Single,Boolean) overload of this method.
Examples
[C#]
This C# example saves the current view transform matrix from the Renderer object in the InkCollector object, theInkCollector, and then applies a scaling factor of
2
in theX
dimension and0.75
in theY
dimension.using System.Drawing.Drawing2D; ... Matrix theOldMatrix = new Matrix(); theInkCollector.Renderer.GetViewTransform(ref theOldMatrix); theInkCollector.Renderer.Scale(2.0f, 0.75f); ...
[VB.NET]
This Microsoft® Visual Basic® .NET example saves the current view transform matrix from the Renderer object in the InkCollector object, theInkCollector, and then applies a scaling factor of
2
in theX
dimension and0.75
in theY
dimension.Imports System.Drawing.Drawing2D ... Dim theOldMatrix As New Matrix() theInkCollector.Renderer.GetViewTransform(theOldMatrix) theInkCollector.Renderer.Scale(2.0, 0.75) ...
See Also