x_bennY Posted February 9, 2019 Posted February 9, 2019 (edited) Hey, i'm trying to display a big animated gif on the screen (1440x1080 15Mb), i already tried this UDF from trancexx: but it is too slow... it takes around 15s to display it, there is another alteranative to do this thing? maybe with GDI.. i don't know. It's curious because the windows image previewer shows it instantly. Edited February 9, 2019 by x_bennY
Gianni Posted February 9, 2019 Posted February 9, 2019 (edited) I have always felt good with the Mrs. trancexx's UDF, however, alternatively, you could try to embed a BrowserControl in your GUI and use it to display your animated gif.I'm curious, let us know if there are any differences in performance ... Local $hGUI = GUICreate("", 1440, 1080, 0, 0) ; Create a GUI Local $oIE = ObjCreate("Shell.Explorer.2") ; Create a BrowserControl GUICtrlCreateObj($oIE, 0, 0, 1440, 1080) ; Place the BrowserControl on the GUI GUISetState() ;Show GUI ; use this syntax if your gif is on an url $oIE.navigate('https://cdn-learn.adafruit.com/assets/assets/000/058/692/original/3d_printing_cad-animation.gif?1533655361') ; $oIE.navigate('https://media.giphy.com/media/rhWj2qCGOBhiE/giphy.gif') ; use this syntax if you have a local file instead ; $oIE.navigate('file:///' & @ScriptDir & '\MyAnimated.gif') MsgBox(0, 'Pause', "Hit OK end") Edited February 9, 2019 by Chimp x_bennY 1 Chimp small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt....
x_bennY Posted February 10, 2019 Author Posted February 10, 2019 Hey @Chimp, using browser is faster, but it uses too much CPU and GPU, i'm trying use this one from JScript: It's seems it solved my problem, it's faster and do not use to much CPU and GPU, but i'm doing another tests...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now