Page 1 of 1

GIF Decoder/Encoder

Posted: Fri Apr 09, 2010 11:59 pm
by LCD
Yes yes, I'm seriously! GIF is not protected by copyrights law anymore since 2004: http://www.cloanto.com/users/mcb/19950127giflzw.html
I'm aware that there are some methods of reading GIF in PB, using low level reading or OLE, but none of these methods is multiplattform-compatible. LoadMovie is a way, but for Animations and not for static GIF images, and grabbing the pixels of animated GIF frames does not work.
Any Chances for this?

Re: GIF Decoder/Encoder

Posted: Sat Apr 10, 2010 11:05 am
by Kaeru Gaman
did you use the forum's search?

Re: GIF Decoder/Encoder

Posted: Sat Apr 10, 2010 1:13 pm
by LCD
Yes, I had, and found some results for UseGifImageDecoder() (not in feature request, but I was not searching far enough), but no definitive answer (yes/no) from Fred, only from freak a #false statement: "GIF is dead".
At least PB supports now transparency, so it is ready for GIF...

Re: GIF Decoder/Encoder

Posted: Sat Apr 10, 2010 2:27 pm
by Thorium
LCD wrote: At least PB supports now transparency, so it is ready for GIF...
No, thats wrong. :)
PureBasic supports transparency for a long time. The new thing is the alpha channel. GIF don't support alpha channel. :wink:

Re: GIF Decoder/Encoder

Posted: Sat Apr 10, 2010 2:40 pm
by Kaeru Gaman
in fact, GIF transparency is a one-color-masked transparency like SetTransparentSpriteColor always was.

Re: GIF Decoder/Encoder

Posted: Mon Apr 12, 2010 11:19 pm
by LCD
Kaeru Gaman wrote:in fact, GIF transparency is a one-color-masked transparency like SetTransparentSpriteColor always was.
Oh, I understand, the new addition is a 8 bit - 256 level transparency, the old was only 1 bit no transparency or full transparency.

Re: GIF Decoder/Encoder

Posted: Tue Apr 13, 2010 1:47 am
by Kaeru Gaman
well, no.
the masked transparency just renders one of the 256 palette colors as transparent, nothing more.
in GIF it is just a Flag in the Header and the index number of the concerned color.

in RGBA each pixel has four channels, Red, Green, Blue and Transparency, each a value of 0-255.
it's something completely different *BOOOM*