What about this
$hPen1=_GDIPlus_PenCreate(0XFF00AA00)
$hPen2=_GDIPlus_PenCreate(0XFF0000FF)
$hBitmap=_GDIPlus_BitmapCreateFromScan0(48,48,$GDIP_PXF32ARGB)
$hImageGfx=_GDIPlus_ImageGetGraphicsContext($hBitmap)
;draw some random shapes
_GDIPlus_GraphicsDrawRect($hImageGfx,10,5,15,8,$hPen1)
_GDIPlus_GraphicsDrawEllipse($hImageGfx,5,20,20,25,$hPen2)
Local $hIcon = _GDIPlus_HICONCreateFromBitmap($hBitmap)
_GDIPlus_PenDispose($hPen1)
_GDIPlus_PenDispose($hPen2)
_GDIPlus_GraphicsDispose($hImageGfx)
$hHBITMAP=_WinAPI_Create32BitHBITMAP($hIcon,True)
; Create normal image list
Local $hNormal = _GUIImageList_Create($iW, $iW,5)
;_GUIImageList_Add($hNormal, _WinAPI_CreateSolidBitmap($hGUI, 0xFF0000, $iW, $iW))
;_GUIImageList_Add($hNormal, $hHBMPBack)
$iAdd1=_GUIImageList_Add($hNormal, $hHBITMAP)
_GUIImageList_Add($hNormal, $hHBMPForward)
_GUIImageList_Add($hNormal, $hHBMPUp)
You can load image from file with _GDIPlus_BitmapCreateFromFile.