Scales the Strokes collection in the X and Y dimensions.
Public Sub Scale ( _ scaleX As Single, _ scaleY As Single _ )
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 function Scale( scaleX : float, scaleY : float )
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.
' 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
// 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