;Coded by UEZ #AutoIt3Wrapper_UseX64=y #include #include "WebP.au3" ;~ Global $sFile Global $sFile = "file_example_WEBP_500kB.webp";FileOpenDialog("Select an image", "", "Images (*.webp)") If @error Then Exit Global Const $STM_SETIMAGE = 0x0172 _GDIPlus_Startup() Global Const $hBitmap = WebP_BitmapCreateGDIp($sFile, True) Global $tDim = DllStructCreate($tagBITMAP) DllCall("gdi32.dll", "int", "GetObject", "int", $hBitmap, "int", DllStructGetSize($tDim), "ptr", DllStructGetPtr($tDim)) Global Const $iW = DllStructGetData($tDim, "bmWidth"), $iH = DllStructGetData($tDim, "bmHeight") Global Const $hGUI = GUICreate("WebP Image Viewer", 1000, 562.5) GUISetBkColor(0xFFFFFF) Global Const $iPic = GUICtrlCreatePic("", 0, 0, $iW - 1, $iH - 1) _WinAPI_DeleteObject(GUICtrlSendMsg($iPic, $STM_SETIMAGE, $IMAGE_BITMAP, $hBitmap)) GUISetState() _WinAPI_DeleteObject($hBitmap) _GDIPlus_Shutdown() Do Until GUIGetMsg() = $GUI_EVENT_CLOSE