VB GIF Animator-VBForums
Results 1 to 20 of 20

Thread: VB GIF Animator

  1. #1

    Thread Starter
    Old Member moeur's Avatar
    Join Date
    Nov 2004
    Location
    Wait'n for Free Stuff
    Posts
    2,712

    VB GIF Animator

    Here is Version 2 of the GFI animator.
    The main changes are
    • Truly transparent
    • supports more GIFs
    • Can load gif from file or resource
    • based on a class that can be used separately from the control
    Here is how to use it
    Code:
    With ctlGIF1
        'hide border
        .BorderStyle = vbBSNone
        'make control size of picture
        .AutoSize = True
        'make transparent
        .BackStyle = ucTransparent
        'load gif from resource file
        .LoadGIF LoadResData(102, "CUSTOM")
        'Start the animation
        .Animate = True
    End With
    Try it out an let me know if there are GIFs it won't load or other bugs.
    I know of one bug, but I'm working on that.

    Here is the latest version which is down lower in this thread
    http://www.vbforums.com/attachment.p...chmentid=40429
    Attached Files Attached Files
    Last edited by si_the_geek; Apr 1st, 2011 at 11:02 AM. Reason: corrected issue with tags

  2. #2
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Other side of town from si_the_geek
    Posts
    7,171

    Re: VB GIF Animator

    The attachment seems to be missing


    Has someone helped you? Then you can Rate their helpful post.

  3. #3

    Thread Starter
    Old Member moeur's Avatar
    Join Date
    Nov 2004
    Location
    Wait'n for Free Stuff
    Posts
    2,712

    Re: VB GIF Animator

    The attachment seems to be missing
    I hate it when that happens.

  4. #4

    Thread Starter
    Old Member moeur's Avatar
    Join Date
    Nov 2004
    Location
    Wait'n for Free Stuff
    Posts
    2,712

    Re: VB GIF Animator

    New improved version uploaded today.
    I think I fixed all the bugs, but you never know.

  5. #5

    Thread Starter
    Old Member moeur's Avatar
    Join Date
    Nov 2004
    Location
    Wait'n for Free Stuff
    Posts
    2,712

    Re: VB GIF Animator

    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).
    Attached Files Attached Files

  6. #6
    Hyperactive Member
    Join Date
    Jun 2003
    Posts
    376

    Re: VB GIF Animator

    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?

  7. #7
    Addicted Member JensPeder's Avatar
    Join Date
    Sep 2005
    Posts
    249

    Re: VB GIF Animator

    Nothing else to say 'cept for: Great job!

  8. #8
    New Member
    Join Date
    Apr 2006
    Posts
    1

    Talking Re: VB GIF Animator

    I reckon this is the **** its great

  9. #9
    Addicted Member
    Join Date
    Apr 2006
    Location
    Sweden
    Posts
    173

    Re: VB GIF Animator

    I'll test this stuff tomorrow...seems really great!

  10. #10
    Fanatic Member ididntdoit's Avatar
    Join Date
    Apr 2006
    Location
    :uoıʇɐɔoן
    Posts
    765

    Re: VB GIF Animator

    Quote Originally Posted by piscis
    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

  11. #11
    Addicted Member
    Join Date
    Jun 2006
    Location
    Egypt
    Posts
    162

    Re: VB GIF Animator

    Is it possible to add paintpicture function to such control , so we can zoom , rotate & resize GIFs

  12. #12
    Addicted Member tcurrier's Avatar
    Join Date
    May 1999
    Location
    Northeastern Pa./USA
    Posts
    255

    Re: VB GIF Animator

    When I try to run this, I get:

    VB Code:
    1. ctlGIF.Animate = True

    Method or data member not found....

    When I unzip the files, do they all go into the same folder ?
    VB6 Enterprise SP4

  13. #13
    New Member winboss_cz's Avatar
    Join Date
    Aug 2007
    Location
    Prerov, Czech Republic
    Posts
    1

    Re: VB GIF Animator

    Wow, it's great! Thank you for this component.

  14. #14
    PowerPoster joaquim's Avatar
    Join Date
    Apr 2007
    Posts
    2,916

    Re: VB GIF Animator

    Quote Originally Posted by moeur
    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

  15. #15
    Member
    Join Date
    Sep 2008
    Location
    Turkey
    Posts
    37

    Re: VB GIF Animator

    Thanks For Share. i Finding This )

  16. #16
    Lively Member okosv's Avatar
    Join Date
    Sep 2006
    Posts
    95

    Re: VB GIF Animator

    Thanks! :-)

  17. #17
    New Member
    Join Date
    Dec 2011
    Posts
    1

    Re: VB GIF Animator

    Dude its really cool but how do I use it to put my own animations? I'm trying to make a simple gif animation thing and its driving me crazy.

  18. #18

    Re: VB GIF Animator

    Thanks for your class!

  19. #19
    PowerPoster
    Join Date
    Jan 2008
    Posts
    9,048

    Re: VB GIF Animator

    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 for demonstration purposes 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 that it is useful then it is entirely up to you to make whatever necessary changes you feel are adequate for your purposes.

  20. #20
    New Member
    Join Date
    May 2013
    Posts
    1

    Re: VB GIF Animator

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.