Jump to content
trancexx

GIF Animation

Recommended Posts

Is there a way to make the image bigger? Would I have to make every frame bigger as it is being displayed or could I make them all bigger and display the enlarged frames?


0x616e2069646561206973206c696b652061206d616e20776974686f7574206120626f64792c20746f206669676874206f6e6520697320746f206e657665722077696e2e2e2e2e

Share this post


Link to post
Share on other sites

Is there a way to make the image bigger? Would I have to make every frame bigger as it is being displayed or could I make them all bigger and display the enlarged frames?

It's possible, but in my opinion it just adds more and unnecessary confusion.

That's the reason why I didn't implement it in the first place, nor do I intend to.


♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites

It's possible, but in my opinion it just adds more and unnecessary confusion.

That's the reason why I didn't implement it in the first place, nor do I intend to.

OK

Is there some way it could be done with the GDIPlus functions instead? I am trying to make it support multiple image types but i can't wrap my head around DLL calls.

I am using a script given to me earlier on in this thread. my goal is to make something similar (identical is better) to the windows xp image viewer. Normally I would be able to do this, but you used DLL calls instead of the GDIPlus functions, so I don't know how it works.


0x616e2069646561206973206c696b652061206d616e20776974686f7574206120626f64792c20746f206669676874206f6e6520697320746f206e657665722077696e2e2e2e2e

Share this post


Link to post
Share on other sites

OK

Is there some way it could be done with the GDIPlus functions instead? I am trying to make it support multiple image types but i can't wrap my head around DLL calls.

I am using a script given to me earlier on in this thread. my goal is to make something similar (identical is better) to the windows xp image viewer. Normally I would be able to do this, but you used DLL calls instead of the GDIPlus functions, so I don't know how it works.

In the meantime Authenticity wrote wrappers for all gdip functions. You can find all functions here if you think it would be easier for you to comprehend.

♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites

In the meantime Authenticity wrote wrappers for all gdip functions. You can find all functions here if you think it would be easier for you to comprehend.

WAOH

That helped me with a compleatly different question.....thanks?

*edit*.....and raised a lot more.....

Edited by corgano

0x616e2069646561206973206c696b652061206d616e20776974686f7574206120626f64792c20746f206669676874206f6e6520697320746f206e657665722077696e2e2e2e2e

Share this post


Link to post
Share on other sites

When i add a gif object with "_guictrlcreategif", i cant add any object above gif.How can i add object above gif?

i solve that proglem with child window.

Edited by blackman12

Share this post


Link to post
Share on other sites

I thought maybe to add code for x64 AutoIt, so I did.

Also _GUICtrlCreateGIF() function take all kind of input from now. It can be GIF file, GIF binary, PE resource, even string. All this is valid:

; GIF File path
_GUICtrlCreateGIF("Some.gif", "", 10, 10, $pGIF)

; Binary data
_GUICtrlCreateGIF($bGIF, "", 10, 10, $pGIF)

; PE Resource (file GIF.dll, Type: GIF, Name: 4)
_GUICtrlCreateGIF("GIF.dll", "GIF;4", 10, 10, $pGIF)

; PE Resource (file OtherGIF.dll, Type: RES, Name: BLAH, Language: 1033)
_GUICtrlCreateGIF("OtherGIF.dll", "RES;BLAH;1033", 10, 10, $pGIF)

; GIF string
_GUICtrlCreateGIF(FileRead("Some.gif"), "", 10, 10, $pGIF)

I wrote it just now - there could be bugs. ...nahh, I'm lying.

How advanced is this?

Edited by trancexx

♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites

on a scale of 1 to 100 or 1 to 50?


0x616e2069646561206973206c696b652061206d616e20776974686f7574206120626f64792c20746f206669676874206f6e6520697320746f206e657665722077696e2e2e2e2e

Share this post


Link to post
Share on other sites

I've just realized that by adding few (almost literally) lines of code I could make it working for all kind of images, not just GIFs.

AdmiralAlkex, would you be kind to write me a function for the example script to list to array all files found in folder based on extension (but to be able to specify more than one extension). You have something like that in ShiftER, right?


♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites

Yes I have such a func, but it's not really optimal (I think) and dependent on globals. As I was already rummaging around in Shifter looking for something to improve, I will take a look at this right now.

Edit: The sorting will be weird though (you probably noticed that when you tested ShiftER)

Edit2: A good movie started on TV, I will come back later (assuming I'm still awake :blink: )

Edited by AdmiralAlkex

Share this post


Link to post
Share on other sites

That's ok, I got it myself somehow.

I've updated first post.

Change is that GIFAnimation.au3 can be used to display all sort of images now, not only GIFs. Why is this important? Because all of that is possible from PE resources too, for example.


♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites

I am using your GIF Animation Udf and its great! But I am running into one problem. If the window with a _GUICtrlCreateGIF GIF animation gets turned into a child window via _WinAPI_SetParent(), the GIF will not animate. Is there a possible solution for this problem?

Share this post


Link to post
Share on other sites

I am using your GIF Animation Udf and its great! But I am running into one problem. If the window with a _GUICtrlCreateGIF GIF animation gets turned into a child window via _WinAPI_SetParent(), the GIF will not animate. Is there a possible solution for this problem?

Could you post a snippet?

♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites

You have a problem with folders in _FolderListFilesToArray(). It will include folders called "IAmAFolder.jpg" and such. Add:

If @extended = 1 Then ContinueLoop

After the If @error

:blink:

Share this post


Link to post
Share on other sites

You have a problem with folders in _FolderListFilesToArray(). It will include folders called "IAmAFolder.jpg" and such. Add:

If @extended = 1 Then ContinueLoop

After the If @error

:blink:

Yes Sir Admiral Sir.

Will update at 19:00 hours.

Btw, I have found a way to remove almost all additional win message processing. WM_PAINT should be enough for even the most demanding GUIs.


♡♡♡

.

eMyvnE

Share this post


Link to post
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

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...