I modified the example in the help file....
Essentially, everytime the function runs, it can read a $Model that gets returned earlier, and display that image. However, the previous image does not seem to go away.
_GDIPlus_GraphicsDispose($g_hGraphic)
_GDIPlus_ImageDispose($g_hImage)
Do not seem to work, and $RDW_ERASENOW seems to have do nothing.
; Draw PNG image
Func MY_WM_PAINT($hWnd, $iMsg, $wParam, $lParam)
#forceref $hWnd, $iMsg, $wParam, $lParam
If _GDIPlus_ImageLoadFromFil
Here an example which you can work with: #include <GUIConstantsEx.au3>
#include <FileConstants.au3>
#include <GDIPlus.au3>
_GDIPlus_Startup()
Global Const $hGUI = GUICreate("GDI+ Test", 800, 600)
Global Const $iBtn_Load = GUICtrlCreateButton("Load", 10, 10, 60, 60)
Global Const $iInput_Path = GUICtrlCreateInput("", 80, 28, 700, 24)
Global Const $iLabel_Text = GUICtrlCreateLabel("Preview 640x480", 10, 85, 100, 12)
Global Const $iPic_Preview = GUICtrlCreatePic("", 10, 100, 64