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?
GIF Decoder/Encoder
GIF Decoder/Encoder
My PC
Ryzen 9 5950, 64 GB RAM, nVidia RTX A4000, Win 10
Ryzen 7 1700, 32 GB RAM, nVidia RTX A2000, Win 10
Ryzen 9 5950, 64 GB RAM, nVidia RTX A4000, Win 10
Ryzen 7 1700, 32 GB RAM, nVidia RTX A2000, Win 10
- Kaeru Gaman
- Addict
- Posts: 4826
- Joined: Sun Mar 19, 2006 1:57 pm
- Location: Germany
Re: GIF Decoder/Encoder
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...
At least PB supports now transparency, so it is ready for GIF...
My PC
Ryzen 9 5950, 64 GB RAM, nVidia RTX A4000, Win 10
Ryzen 7 1700, 32 GB RAM, nVidia RTX A2000, Win 10
Ryzen 9 5950, 64 GB RAM, nVidia RTX A4000, Win 10
Ryzen 7 1700, 32 GB RAM, nVidia RTX A2000, Win 10
Re: GIF Decoder/Encoder
No, thats wrong.LCD wrote: At least PB supports now transparency, so it is ready for GIF...

PureBasic supports transparency for a long time. The new thing is the alpha channel. GIF don't support alpha channel.

- Kaeru Gaman
- Addict
- Posts: 4826
- Joined: Sun Mar 19, 2006 1:57 pm
- Location: Germany
Re: GIF Decoder/Encoder
in fact, GIF transparency is a one-color-masked transparency like SetTransparentSpriteColor always was.
oh... and have a nice day.
Re: GIF Decoder/Encoder
Oh, I understand, the new addition is a 8 bit - 256 level transparency, the old was only 1 bit no transparency or full transparency.Kaeru Gaman wrote:in fact, GIF transparency is a one-color-masked transparency like SetTransparentSpriteColor always was.
My PC
Ryzen 9 5950, 64 GB RAM, nVidia RTX A4000, Win 10
Ryzen 7 1700, 32 GB RAM, nVidia RTX A2000, Win 10
Ryzen 9 5950, 64 GB RAM, nVidia RTX A4000, Win 10
Ryzen 7 1700, 32 GB RAM, nVidia RTX A2000, Win 10
- Kaeru Gaman
- Addict
- Posts: 4826
- Joined: Sun Mar 19, 2006 1:57 pm
- Location: Germany
Re: GIF Decoder/Encoder
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*
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*
oh... and have a nice day.