Get GIF info
I am making an online RPG game (view my other submissions to see it). I decided I'd use GIF files instead of BMP's for their size. But I had a problem. I wanted to use the GIF files transparency, but I didn't know any way to find out what that colour was. So I searched the net, read article after article on the GIF file format, and eventually I just opened a GIF file with a hex editor and decoded the data on my own. Then I wrote this module to find out the information I needed.
This program can read from the GIF file:
Version
Height & Width
Number of Colours
Palette data (IE, all of the colours)
If it is transparent, and, if so, what the transparent colour is
I would like to thank Dan Redding from Blue Knot Software for giving me the idea to open the file with a hex editor to decypher the code.
* Update, fixed the file so that it works now. The gif reading bas always worked, just the program itself. But it's fixed now.*
Original Author: JimCamel
About this post
Posted: 2002-06-01
By: ArchiveBot
Viewed: 87 times
Categories
Attachments
CODE_UPLOAD13516172001.zip
Posted: 9/3/2020 3:45:00 PM
Size: 5,596 bytes
Loading Comments ...
Comments
No comments have been added for this post.
You must be logged in to make a comment.