corgano Posted December 27, 2009 Share Posted December 27, 2009 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 Link to comment Share on other sites More sharing options...
trancexx Posted December 27, 2009 Author Share Posted December 27, 2009 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 Link to comment Share on other sites More sharing options...
corgano Posted December 27, 2009 Share Posted December 27, 2009 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.OKIs 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 Link to comment Share on other sites More sharing options...
trancexx Posted December 27, 2009 Author Share Posted December 27, 2009 OKIs 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 Link to comment Share on other sites More sharing options...
corgano Posted December 27, 2009 Share Posted December 27, 2009 (edited) 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.WAOHThat helped me with a compleatly different question.....thanks?*edit*.....and raised a lot more..... Edited December 27, 2009 by corgano 0x616e2069646561206973206c696b652061206d616e20776974686f7574206120626f64792c20746f206669676874206f6e6520697320746f206e657665722077696e2e2e2e2e Link to comment Share on other sites More sharing options...
blackman12 Posted May 15, 2010 Share Posted May 15, 2010 (edited) 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 May 16, 2010 by blackman12 Link to comment Share on other sites More sharing options...
trancexx Posted August 1, 2010 Author Share Posted August 1, 2010 (edited) 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 August 1, 2010 by trancexx ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted August 1, 2010 Share Posted August 1, 2010 How advanced is this?42 .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
trancexx Posted August 1, 2010 Author Share Posted August 1, 2010 Yes something like that ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
corgano Posted August 1, 2010 Share Posted August 1, 2010 on a scale of 1 to 100 or 1 to 50? 0x616e2069646561206973206c696b652061206d616e20776974686f7574206120626f64792c20746f206669676874206f6e6520697320746f206e657665722077696e2e2e2e2e Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted August 1, 2010 Share Posted August 1, 2010 (edited) What are you talking about? Edit: That question was for you corgano, in case you didn't notice. Edited August 1, 2010 by AdmiralAlkex .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
trancexx Posted August 1, 2010 Author Share Posted August 1, 2010 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 Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted August 1, 2010 Share Posted August 1, 2010 (edited) 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 ) Edited August 1, 2010 by AdmiralAlkex .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
trancexx Posted August 1, 2010 Author Share Posted August 1, 2010 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 Link to comment Share on other sites More sharing options...
Tomb Posted August 2, 2010 Share Posted August 2, 2010 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? Link to comment Share on other sites More sharing options...
trancexx Posted August 2, 2010 Author Share Posted August 2, 2010 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 Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted August 2, 2010 Share Posted August 2, 2010 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 .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
trancexx Posted August 2, 2010 Author Share Posted August 2, 2010 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 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 Link to comment Share on other sites More sharing options...
Zibit Posted August 3, 2010 Share Posted August 3, 2010 This kinda rocks 5 STARS !!! You ROCK! Creator Of Xtreme DevelopersPixel Pattern UDFTray GUI UDFMathssend & recive register scriptMouse Control via Webcam Link to comment Share on other sites More sharing options...
DivSar Posted August 3, 2010 Share Posted August 3, 2010 How to resize a gif for width, height ??? GUICtrlSetPos(controlID,left,top,width,height) doesn't... Thanks. Link to comment Share on other sites More sharing options...
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