_GDIPlus_GraphicsDrawArc

  • Hai Leute,
    Ich möchte ein kleines radar machen...ich wollt das radar mit Gdi+ zeichen!

    Spoiler anzeigen
    [autoit]

    #include <GUIConstantsEx.au3>
    #include <WindowsConstants.au3>
    #include <Gdiplus.au3>
    $HWND = GUICreate("Form1", 301, 251, 1122, 571, BitOR($WS_MAXIMIZEBOX,$WS_MINIMIZEBOX,$WS_SIZEBOX,$WS_THICKFRAME,$WS_DLGFRAME,$WS_GROUP,$WS_TABSTOP,$WS_CLIPSIBLINGS), BitOR($WS_EX_TOOLWINDOW,$WS_EX_WINDOWEDGE))
    GUISetState(@SW_SHOW)

    [/autoit] [autoit][/autoit] [autoit]

    _GDIPlus_Startup()
    $hGraphics = _GDIPlus_GraphicsCreateFromHWND($HWND)
    _GDIPlus_GraphicsDrawLine($hGraphics, 301, 110, 0, 110)
    _GDIPlus_GraphicsDrawLine($hGraphics, 155, 0, 155, 301)
    _GDIPlus_GraphicsDrawArc($hGraphics, 134, 90, 50, 50 , 360 , 360)
    _GDIPlus_GraphicsDrawArc($hGraphics, 134, 90, 100, 100 , 360 , 360)
    _GDIPlus_GraphicsDrawArc($hGraphics, 134, 90, 200, 200 , 360 , 360)

    [/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit

    [/autoit] [autoit][/autoit] [autoit]

    EndSwitch
    WEnd

    [/autoit]


    Wie kann ich jetzt oohne lang aus zu Probieren die Kreise genau mit dem MIttelpunkt in die mitte der Gui bringen?