Jump to content

Faster way to show animated gif on screen


x_bennY
 Share

Recommended Posts

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 by x_bennY
Link to comment
Share on other sites

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 by Chimp

 

image.jpeg.9f1a974c98e9f77d824b358729b089b0.jpeg Chimp

small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt....

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...