Abend,
ich habe mal mit GDI + eine Progressbar erstellt und mir ist dabei aufgefallen, dass es sehr langsam ist. Normal ist dies auf jeden Fall nicht.
Weiß jemand vielleicht wie ich die Geschwindigkeit ankurbeln kann?
Skript :
Spoiler anzeigen
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Include <GDIPlus.au3>
$hGUI1 = GUICreate("Form1", 396, 56, 192, 124)
$Pic1 = GUICtrlCreatePic("", 8, 8, 372, 36)
GUISetState(@SW_SHOW)
_GDIPlus_Startup ()
$hImage = _GDIPlus_ImageLoadFromFile ("C:\Users\Benutzer\Documents\Jellyfish.jpg")
$hGraphic1 = _GDIPlus_GraphicsCreateFromHWND ($hGUI1)
$hImage2 = _GDIPlus_ImageLoadFromFile ("C:\Users\Benutzer\Documents\Prog.jpg")
$hGraphic2 = _GDIPlus_GraphicsCreateFromHWND ($hGUI1)
_GDIPlus_GraphicsDrawImageRect($hGraphic2, $hImage2, 0, 0 ,360,60)
For $i = 1 to 396
_GDIPlus_GraphicsDrawImageRect($hGraphic1, $hImage, 0, 0 ,$i,60)
Next
_GDIPlus_Shutdown ()
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd