Gif.xml 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <?xml-stylesheet type="text/xsl" href="../Xsl/doc2html.xsl"?>
  3. <doc>
  4. <title>Graphics Interchange Format</title>
  5. <chapter>
  6. <title>Graphics Interchange Format</title>
  7. <par>
  8. GIF was
  9. (and is still used) popular format for storing images supporting
  10. multiple images per file and single color transparency.
  11. Pixel format is 8 bit indexed where each image frame can have
  12. its own color palette. GIF uses lossless LZW compression
  13. (patent expired few years ago).
  14. Imaging can load and save all GIFs with all frames and supports
  15. transparency.
  16. </par>
  17. <par>
  18. Loadng of animated GIFs was rewritten in Imaging 0.26.2 (based
  19. on ExtraGIF mod by Sergey Galezdinov).
  20. It now supports two modes of operation:
  21. <blist>
  22. <li><b>Raw Frames</b> just extracts raw frames from GIF files
  23. without any modification. Useful when you want to do your own
  24. GIF animator. Extracted frames are all in <icode>ifIndex8</icode>.
  25. </li>
  26. <li><b>Animated Frames</b> animates all frames using disposal methods
  27. and placement of frames onto logical screen. Correctly animates
  28. all tested GIFs (several thousand). Animated frames are
  29. in <icode>ifA8R8G8B8</icode> format so even rare true color GIFs
  30. are supported (each frame has only 256 colors but you can place them
  31. side by side onto logical screen to create one larger true color image).
  32. This is the default mode.
  33. </li>
  34. </blist>
  35. </par>
  36. <par>
  37. You can select which mode you wan to use
  38. with <ref>ImagingGIFLoadAnimated</ref> option along with
  39. <ref>SetOption</ref> and <ref>GetOption</ref> functions.
  40. Or you can set them by modifying properties of <ref>TGIFFileFormat</ref>
  41. class.
  42. </par>
  43. <table>
  44. <title>Options Related to GIF Files</title>
  45. <row>
  46. <th>OptionId</th>
  47. <th>Allowed Values</th>
  48. <th>Usage</th>
  49. </row>
  50. <row>
  51. <td><ref>ImagingGIFLoadAnimated</ref></td>
  52. <td><b>0 (false)</b> or <b>1 (true)</b></td>
  53. <td>Boolean option that specifies whether GIF images with more frames
  54. are animated by Imaging (according to frame disposal methods) or just
  55. raw frames are loaded and sent to user (if you want to animate GIF yourself).
  56. Default value is <b>1 (true)</b>. </td>
  57. </row>
  58. </table>
  59. <table>
  60. <title>GIF File Format Support</title>
  61. <row>
  62. <th>Format</th>
  63. <th>TImageFormat equivalent</th>
  64. <th>Loading</th>
  65. <th>Saving</th>
  66. </row>
  67. <row>
  68. <td>up to 256 colors indexed</td>
  69. <td><icode>ifIndex8</icode></td>
  70. <td>Yes</td><td>Yes</td>
  71. </row>
  72. <row>
  73. <td>true color with transparency for animated frames</td>
  74. <td><icode>ifA8R8G8B8</icode></td>
  75. <td>Yes</td><td>No</td>
  76. </row>
  77. </table>
  78. </chapter>
  79. </doc>