GIF: what changed
Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.
| Old | New | Line | |
|---|---|---|---|
| 1 | - | ||
| 1 | + | GIF is a graphic format. From about 2004 year, code for LZW compressing (for GIF) is free. So it's free. | |
| 2 | 2 | ||
| 3 | - | ||
| 4 | - | ||
| 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 | + | ``` pascal | |
| 5 | 6 | initialization | |
| 6 | - | ||
| 7 | - | ||
| 8 | - | ||
| 9 | - | ||
| 10 | - | ||
| 11 | - | ||
| 7 | + | ||
| 8 | + | //Free Pascal Image | |
| 9 | + | ImageHandlers.RegisterImageReader ('Animated GIF', TAnimatedGif.GetFileExtensions, TFPReaderGIF); | |
| 10 | + | ||
| 11 | + | //Lazarus Picture | |
| 12 | + | TPicture.RegisterFileFormat(TAnimatedGif.GetFileExtensions,'Animated GIF', TAnimatedGif); | |
| 12 | 13 | ``` | |
| 13 | 14 | ||
| 14 | 15 | --- | |
| 15 | - | ||
| 16 | + | *From the Free Pascal wiki, page "GIF", as it stood on 2020-02-16 after a change by Trev, out of the wiki's dump of 2024-05-26. 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).* | |
| 17 | + | Category: Graphics |
