Here is the Code
#include <GUIConstantsEx.au3>
#include <GDIPlus.au3>
_Main()
Func _Main()
Local $hGUI, $hGraphic, $aPoints[8][2]
; Create GUI
$hGUI = GUICreate("GDI+", 400, 300)
; Draw a cardinal spline
_GDIPlus_Startup()
$hGraphic = _GDIPlus_GraphicsCreateFromHWND($hGUI)
$aPoints=_ArrayPoints(10,10,0,0.0001)
_GDIPlus_GraphicsDrawCurve($hGraphic, $aPoints)
GUISetState()
; Loop until user exits
Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE
; Clean up resources
_GDIPlus_Grap