Graphics.RotateTransform Method (Single, MatrixOrder)
Assembly: System.Drawing (in system.drawing.dll)
public void RotateTransform ( float angle, MatrixOrder order )
public function RotateTransform ( angle : float, order : MatrixOrder )
Not applicable.
Parameters
- angle
Angle of rotation in degrees.
- order
Member of the MatrixOrder enumeration that specifies whether the rotation is appended or prepended to the matrix transformation.
The following code example is designed for use with Windows Forms, and it requires PaintEventArgse, which is a parameter of the Paint event handler. The code performs the following actions:
-
Translates the world transformation matrix of the Windows Form by the vector (100, 0).
-
Rotates the world transform by an angle of 30 degrees, appending the rotation matrix to the world transformation matrix with Append.
-
Draws a translated, rotated ellipse with a blue pen.
Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.