Page 2 of 2
Posted: Sat Jun 06, 2009 6:32 pm
by Michael Vogel
Hi (Fred),
in the meantime the GIF format should be free now?!
Is there a plan to implement a UseGIFImageDecoder() function?
Thanks,
Michael
Posted: Sun Jun 07, 2009 2:08 am
by localmotion34
It wouldn't be too hard. haqibaba posted code here for a native GIF decoder, and I myself modified that to decode ALL the frames of an animated gif. So in essence, it could be added to the PB command set:
UseGIFImageDecoder
GetGIFFrame(#image, FrameNumber)
CountGIFFrames(#image)
Or you can just use the code posted on here, but it has NOT been adapted for CatchImage.
Posted: Thu Jun 11, 2009 1:20 am
by Seymour Clufley
How is your GIF encoder coming along, localmotion? Did the project stall?
Posted: Thu Jun 11, 2009 11:31 am
by PB
There's already a small code snippet in these forums that let you load and
display GIFs, JPGs and PNGs without using PureBasic's image decoders.