Graphics.ScaleTransform Method (Single, Single)
Applies the specified scaling operation to the transformation matrix of this Graphics by prepending it to the object's transformation matrix.
Assembly: System.Drawing (in System.Drawing.dll)
The scaling operation consists of multiplying the transformation matrix by a diagonal matrix whose elements are (sx, sy, 1). This method prepends the transformation matrix of the Graphics by the scaling matrix.
Rotates the world transformation matrix of the Windows Form by 30 degrees.
Scales that matrix by a factor of 3 in the x direction and a factor of 1 in the y direction by prepending the scaling transformation.
Draws a scaled, rotated rectangle with a blue pen.
The result is still a rectangle.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.