GIF: what changed
Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.
Title: GIF
| Old | New | Line | |
|---|---|---|---|
| 1 | + | GIF is a graphic format. From about 2004 year, code for LZW compressing (for GIF) is free. So it's free. | |
| 2 | + | ||
| 3 | + | To show GIF image, animated or not, you can use [AnimatedGif library](<http://consume.o2switch.net/lazarus/>). It gives unit which self-registers in Free Pascal classes, and also in Lazarus' TPicture: | |
| 4 | + | ``` | |
| 5 | + | initialization | |
| 6 | + | ||
| 7 | + | //Free Pascal Image | |
| 8 | + | ImageHandlers.RegisterImageReader ('Animated GIF', TAnimatedGif.GetFileExtensions, TFPReaderGIF); | |
| 9 | + | ||
| 10 | + | //Lazarus Picture | |
| 11 | + | TPicture.RegisterFileFormat(TAnimatedGif.GetFileExtensions,'Animated GIF', TAnimatedGif); | |
| 12 | + | ``` | |
| 13 | + | ||
| 14 | + | --- | |
| 15 | + | *From the Free Pascal wiki, page "GIF", as the Internet Archive kept it on 2026-01-31. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).* |
