Results 1 to 7 of 7

Thread: creating animated gifs in visual basic 6

Hybrid View

  1. #1

    Thread Starter
    PowerPoster joaquim's Avatar
    Join Date
    Apr 2007
    Posts
    3,904

    creating animated gifs in visual basic 6

    is there possivel creating animated gif files in visual basic 6?
    thanks
    VB6 2D Sprite control

    To live is difficult, but we do it.

  2. #2
    Frenzied Member Jim Davis's Avatar
    Join Date
    Mar 2001
    Location
    Mars base one Username: Jim Davis Password: yCrm33
    Posts
    1,284

    Re: creating animated gifs in visual basic 6

    I think so. If you take a closer look, LaVolpe show you a way how to open an animated gif file. By modifying his code, you may be able to save it also. Just read more about the animated gif file construction!

    This page may look interesting!
    http://www.matthewflickinger.com/lab/whatsinagif/

    Or this one:
    http://en.wikipedia.org/wiki/GIF

  3. #3

    Thread Starter
    PowerPoster joaquim's Avatar
    Join Date
    Apr 2007
    Posts
    3,904

    Thumbs up Re: creating animated gifs in visual basic 6

    Quote Originally Posted by Jim Davis
    I think so. If you take a closer look, LaVolpe show you a way how to open an animated gif file. By modifying his code, you may be able to save it also. Just read more about the animated gif file construction!

    This page may look interesting!
    http://www.matthewflickinger.com/lab/whatsinagif/

    Or this one:
    http://en.wikipedia.org/wiki/GIF
    thanks for these... realy thanks..
    VB6 2D Sprite control

    To live is difficult, but we do it.

  4. #4
    Frenzied Member Jim Davis's Avatar
    Join Date
    Mar 2001
    Location
    Mars base one Username: Jim Davis Password: yCrm33
    Posts
    1,284

    Re: creating animated gifs in visual basic 6

    I also give you a tip. If you are about to extend your Sprite project, why dont you just create a custom format for your UserControl, there you can open the animated image in the way you can handle it easily.

    You only have to develope a 'converter', that is opens a format like Animated Gif (or the newcomer formats just like APNG, MNG) then saves it to your custom animated format.

    You also can store the Frames in your image with ZIP compression (almost like pngs), that is available in a small dll, you can use in VB6 as well.

    http://www.zlib.net/zlib.html

    Here is the DLL : http://www.zlib.net/zlib123-dll.zip
    Last edited by Jim Davis; Nov 16th, 2008 at 12:03 PM.

  5. #5

    Thread Starter
    PowerPoster joaquim's Avatar
    Join Date
    Apr 2007
    Posts
    3,904

    Re: creating animated gifs in visual basic 6

    Quote Originally Posted by Jim Davis
    I also give you a tip. If you are about to extend your Sprite project, why dont you just create a custom format for your UserControl, there you can open the animated image in the way you can handle it easily.

    You only have to develope a 'converter', that is opens a format like Animated Gif (or the newcomer formats just like APNG, MNG) then saves it to your custom animated format.

    You also can store the Frames in your image with ZIP compression (almost like pngs), that is available in a small dll, you can use in VB6 as well.

    http://www.zlib.net/zlib.html

    Here is the DLL : http://www.zlib.net/zlib123-dll.zip
    its interesting building new formats, but not every programs can read it...
    yes i wanted extend my project.... i'm update it for the version 3, but i need resolve 2 or 3 little problems... and otherthing: now my sprite control supports API functions(or some)...
    honestly these way, for reading/write animated gif files is complex to me... but i will never give up...
    thanks for help me
    note: what you think about my sprite?
    Last edited by joaquim; Nov 16th, 2008 at 12:30 PM.
    VB6 2D Sprite control

    To live is difficult, but we do it.

  6. #6
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: creating animated gifs in visual basic 6

    Creating animated GIFs in VB is very possible, I and others have done it. An animated gif is simply a file that is formatted in a very specific way. It is somewhat complex. There are 2 major steps:

    1. Design/Create each frame of the animated GIF. GIF frames cannot be more than 256 colors. This requires a graphics program, artistic creativity, and time.

    2. Each frame is then appended to the Gif file/byte array. Obviously one has to know how a GIF frame is formatted in the file. These details are available on the web (i.e., wotsit.org). The compression algorithm to use is also available, I use it in my animated GIF viewer and other projects.

    Though I never posted any complete GIF creation projects, a friend of mine did on PSC.com. You can look at his code here for manipulating individual gif frames, and a compression algorithm can be found here.
    Last edited by LaVolpe; Nov 16th, 2008 at 01:25 PM.
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  7. #7

    Thread Starter
    PowerPoster joaquim's Avatar
    Join Date
    Apr 2007
    Posts
    3,904

    Re: creating animated gifs in visual basic 6

    Quote Originally Posted by LaVolpe
    Creating animated GIFs in VB is very possible, I and others have done it. An animated gif is simply a file that is formatted in a very specific way. It is somewhat complex. There are 2 major steps:

    1. Design/Create each frame of the animated GIF. GIF frames cannot be more than 256 colors. This requires a graphics program, artistic creativity, and time.

    2. Each frame is then appended to the Gif file/byte array. Obviously one has to know how a GIF frame is formatted in the file. These details are available on the web (i.e., wotsit.org). The compression algorithm to use is also available, I use it in my animated GIF viewer and other projects.

    Though I never posted any complete GIF creation projects, a friend of mine did on PSC.com. You can look at his code here for manipulating individual gif frames, and a compression algorithm can be found here.
    hi LaVolpe
    thanks for everything my friend
    VB6 2D Sprite control

    To live is difficult, but we do it.

Posting Permissions

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



Click Here to Expand Forum to Full Width