Hallo,
Nach GDIPlus_Matrix_Dispose wird die Linie immer noch gedreht dargestellt?
Wie komme ich denn in die normale Matrix, bzw. meine normale Grafik zurück, in der ich wieder senkrechte Linien usw. zeichnen kann?
Spoiler anzeigen
#include <GDIPlus.au3>
_GDIPlus_Startup()
$hGui = GUICreate("Test Rotate",600,600)
GUISetState()
$hGraphic = _GDIPlus_GraphicsCreateFromHWND($hGui)
$iARGB_BG=0xFFFFFFFF
_GDIPlus_GraphicsClear($hGraphic, $iARGB_BG)
$iWidth = 100
$iHeight = 200
$hMatrix = _GDIPlus_MatrixCreate()
_GDIPlus_MatrixTranslate($hMatrix, 400, 0)
_GDIPlus_MatrixRotate($hMatrix, 40, "False")
_GDIPlus_GraphicsSetTransform($hGraphic, $hMatrix)
$hpen = _GDIPlus_PenCreate (0xff11FF33,1) ;Stiftfarbe
_GDIPlus_GraphicsDrawEllipse($hGraphic, $iWidth, $iHeight, $iWidth/2, $iHeight*2,$hPen)
_GDIPlus_MatrixDispose($hMatrix)
$hpen2 = _GDIPlus_PenCreate (0xFF000000,1) ;Stiftfarbe
_GDIPlus_GraphicsDrawline($hGraphic,300,0,300,600,$hpen2)
While GUIGetMsg() <> -3
Sleep(10)
WEnd
_GDIPlus_GraphicsDispose($hGraphic)
_GDIPlus_Shutdown()
Beste Grüße, Jens