I need to open a GIF file, decode it to normal format and display in a window or save as BMP. Could somebody post some code here or give a link, please? TIA.
Posted on 2004-09-09 11:51:35 by Deli
I am not sure whether the patents for gif expired, but I think it would be safer to use png (You could download pnglib off Madwizard's site). Anyway Thomas (Madwizard) used to have a giflib but he removed it from his site. I do know however that Johnfound converted it to fasm and is using it in his "fresh".
Posted on 2004-09-09 11:56:08 by roticv
There were two patents (USA and europe iirc), and at least one of them has expired. If you're doing something commercial, you should have a look for patent info - shouldn't be too hard to dig up.

Anyway, perhaps http://board.flatassembler.net/viewtopic.php?t=2216 will be of help. Scali had some blazingly fast code for decoding, but I don't know if he ever made it public.
Posted on 2004-09-09 12:19:47 by f0dder
Also, you can use the GDI+ library to read in different Image formats. Have a look at the GDI+ SDK available on Microsoft. It comes with a help file -- Granted, most of the examples are C++ but should be enough to help you out.

If I remember correctly too, I think there have been some GDI+ ASM files floating around too.

Posted on 2004-09-09 18:22:31 by Relvinian
Here's all the stuff related to the gif format that I have on my hd.

Posted on 2004-09-09 23:43:01 by yessopotamus
You don't even have to use GDI+ - you can use the COM IPicture interface to read in GIF files. This works on more or less all windows versions, might require "some version of internet explorer" though. Have a look in the masm32 library for Ernie's BitmapFromFile or whatever stuff (and remember it has a double-free bug that needs fixing).
Posted on 2004-09-10 07:07:31 by f0dder