Then try this:
#include <GUIConstantsEx.au3>
#include <GuiImageList.au3>
#include <WinAPI.au3>
#include <GDIPlus.au3>
Example()
Func Example()
Local $hImage, $hGUI, $hDC, $iX, $iY, $iIndex = 0
_GDIPlus_Startup()
Local $hBitmap = _GDIPlus_BitmapCreateFromFile(@ScriptDir & "\muybridge12-hp-f.jpg") ; 12 frames a 67x54 px -> 804x54 px in sum
Local $hBmp_tmp = _GDIPlus_BitmapCreateFromScan0(67, 54)
Local $hCtxt_tmp = _GDIPlus_ImageGetGraphicsContext($hBmp_tmp)
$hGUI = GUICreate("ImageList Draw", 400, 300)
GUISetState(@SW_SHOW)
; Load images
$hImages = _GUIImageList_Create(67, 54)
For $i = 0 To 11
_GDIPlus_GraphicsDrawImageRectRect($hCtxt_tmp, $hBitmap, $i * 67, 0, 67, 54, 0, 0, 67, 54)
$hGDIBitmap = _GDIPlus_BitmapCreateHBITMAPFromBitmap($hBmp_tmp)
_GUIImageList_Add($hImages, $hGDIBitmap)
_WinAPI_DeleteObject($hGDIBitmap)
Next
_GDIPlus_GraphicsDispose($hCtxt_tmp)
_GDIPlus_BitmapDispose($hBmp_tmp)
_GDIPlus_BitmapDispose($hBitmap)
; Draw images
$hDC = _WinAPI_GetDC($hGUI)
For $iY = 0 To 2
For $iX = 0 to 3
_GUIImageList_Draw($hImages, $iIndex, $hDC, 4 + $iX * 67, 4 + $iY * 54)
Next
Next
_WinAPI_ReleaseDC($hGUI, $hDC)
; Loop until the user exits.
Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE
GUIDelete()
_GDIPlus_Shutdown()
EndFunc ;==>Example
Br,
UEZ