I uploaded a new version of the GIF animator.
I totally redesigned the class so that it is much more useful.
One problem that exists is that with a certain type of animated gif you will not get a transparent background. This is because some GIFs use a mask to facilitate the transparency which is imbedded in the gif encoding. I don't venture into the encoded image data instead I cheat and use the VB LoadPicture function. LoadPicture handles the masked GIFs OK, but TransparentBLT and the stdPicture object cannot.
Take a look at the demo, it uses the control to anmate a helicopter that flies around the form and the class to animate a picture on a Command Button as well as a group of animated smilies.
This code is an improvement on the ANIGIF control that is sold online because it has a true background transparancy (i.e. the helicopter) and handles a type if GIF that ANIGIF cannot (again the helicopter).
Could someone please explain how to use this class in Visual Basic 2005? All the icons shown are unrecognized by my PC. Is this VB6?
Do I have to create a project and make references or do I insert?
This is vb6 code, as far as i know, your ****ed code wise, unles you got a text version of the code
Visit here to learn to make the VB interface fit you!.
"I have not failed 10,000 times. I have successfully identified 10,000 ways that will not work" Thomas Edison
"The day Microsoft makes something that doesn't suck is probably the day they start making vacuum cleaners" -- Ernst Jan Plugge
I uploaded a new version of the GIF animator.
I totally redesigned the class so that it is much more useful.
One problem that exists is that with a certain type of animated gif you will not get a transparent background. This is because some GIFs use a mask to facilitate the transparency which is imbedded in the gif encoding. I don't venture into the encoded image data instead I cheat and use the VB LoadPicture function. LoadPicture handles the masked GIFs OK, but TransparentBLT and the stdPicture object cannot.
Take a look at the demo, it uses the control to anmate a helicopter that flies around the form and the class to animate a picture on a Command Button as well as a group of animated smilies.
This code is an improvement on the ANIGIF control that is sold online because it has a true background transparancy (i.e. the helicopter) and handles a type if GIF that ANIGIF cannot (again the helicopter).
your object it's very good.... but can you give a toturial that tell me how read the subimages and put them in variable?
i just need the subimages... the transparency and effects i can do...
thank you
I have seen this method 100's of times on the Net so either everyone just happens to have the same idea or everyone is copying everyone else.
I wish for once someone would learn how to decode the LZW and make a real Gif Animator instead of taking an existing GIF, breaking it into it's various frames, then combing them back and displaying each reconstructed frame.
Anything I post is an example only and is not intended to be the only solution, the total solution nor the final solution to your request nor do I claim that it is. If you find it useful then it is entirely up to you to make whatever changes necessary you feel are adequate for your purposes.
Hey ! Thanks for your class! Only one question! It is possible to load the recorce from a ImageList! Because if i delete de file the picture won't load Thanks