Graphics::RotateTransform-Methode (gdiplusgraphics.h)

Die Graphics::RotateTransform-Methode aktualisiert die Welttransformationsmatrix dieses Graphics-Objekts mit dem Produkt selbst und einer Rotationsmatrix.

Syntax

Status RotateTransform(
  [in] REAL        angle,
  [in] MatrixOrder order
);

Parameter

[in] angle

Typ: REAL

Reelle Zahl, die den Winkel der Drehung in Grad angibt.

[in] order

Typ: MatrixOrder

Optional. Element der MatrixOrder-Enumeration , das die Reihenfolge der Multiplikation angibt. MatrixOrderPrepend gibt an, dass sich die Drehungsmatrix auf der linken Seite befindet, und MatrixOrderAppend gibt an, dass sich die Rotationsmatrix auf der rechten Seite befindet. Der Standardwert ist MatrixOrderPrepend.

Rückgabewert

Typ: Status

Wenn die Methode erfolgreich ist, gibt sie OK zurück, ein Element der Status-Enumeration .

Wenn die Methode fehlschlägt, wird eines der anderen Elemente der Status-Enumeration zurückgegeben.

Anforderungen

Anforderung Wert
Unterstützte Mindestversion (Client) Windows XP, Windows 2000 Professional [nur Desktop-Apps]
Unterstützte Mindestversion (Server) Windows 2000 Server [nur Desktop-Apps]
Zielplattform Windows
Kopfzeile gdiplusgraphics.h (include Gdiplus.h)
Bibliothek Gdiplus.lib
DLL Gdiplus.dll

Weitere Informationen

Koordinatensysteme und Transformationen

Grafiken

Graphics::GetTransform

Graphics::MultiplyTransform

Graphics::ResetTransform

Graphics::ScaleTransform

Graphics::SetTransform

Graphics::TransformPoints

Graphics::TranslateTransform

Matrix

Matrixorder

Transformationen