animated gif9?

If you have questions about any aspect of QBasic programming, or would like to help fellow programmers solve their problems, check out this board!

Moderators: Pete, Mods

Post Reply
iamdenteddisk
Veteran
Posts: 185
Joined: Mon Jun 30, 2008 4:10 pm

animated gif9?

Post by iamdenteddisk »

is there a file format to view an gif9 animation in qb?

what I would like to do is use the animations for a background in a game I got the bmp viewers but haven found a gif viewer to work yet..
User avatar
burger2227
Veteran
Posts: 2466
Joined: Mon Aug 21, 2006 12:40 am
Location: Pittsburgh, PA

Post by burger2227 »

Best bet is to convert GIF images to bitmaps. See the GIFsplitter program download here:

http://www.qbasicstation.com/index.php? ... &filecat=2

Scroll down and try it. It creates a number of BMP images from animated GIF files. If the image is small enough, you can GET all of them into one Graphic array and BSAVE all of them at once. Index the color settings to the front of the array as they will probably change the default QB color settings.

Ted
Please acknowledge and thank members who answer your questions!
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
iamdenteddisk
Veteran
Posts: 185
Joined: Mon Jun 30, 2008 4:10 pm

thanks

Post by iamdenteddisk »

I did download the file though I make the Gifs from bmp's so I guess it is just as good to use the bmp's but I got the program any how you just never know when it might be usefull
User avatar
Kiyotewolf
Veteran
Posts: 96
Joined: Tue Apr 01, 2008 11:38 pm

qbasic source

Post by Kiyotewolf »

If you look carefully, you will find a link to a program in QB that does the decoding. You should be able to insert a wait-routine to nab the different frames if you decode how the thing works.

http://www.geocities.com/antonigual/qbasic.html#viewers

http://www.geocities.com/antonigual/qbs ... igif99.zip

The second link there is the actual ZIP downloader of the program.

I actually posted the first link as a designation of who coded, (or uploaded it?), it.

Kiyote!
Banana phone! We need more lemon pledge. * exploding fist of iced tea! * I see your psycho cat and counter with a duck that has a broken leg, in a cast.
iamdenteddisk
Veteran
Posts: 185
Joined: Mon Jun 30, 2008 4:10 pm

ty

Post by iamdenteddisk »

thanks man realy!
Post Reply