Mng.xml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <?xml-stylesheet type="text/xsl" href="../Xsl/doc2html.xsl"?>
  3. <doc>
  4. <title>Multiple Network Graphics File Format</title>
  5. <chapter>
  6. <title>Multiple Network Graphics File Format</title>
  7. <par>
  8. MNG is a multiple-image member of the Network Graphics
  9. format family. It can contain animations, slide shows,
  10. or complex still frames, comprised of multiple
  11. PNG or JNG single-image datastreams.
  12. This format has complex animation capabilities but Imaging only
  13. extracts frames. Individual frames are stored as standard PNG or JNG
  14. images.
  15. </par>
  16. <par>
  17. Imaging saves MNG files as MNG-VLC (very low complexity) so it is basically
  18. an array of image frames without MNG animation chunks. Frames can be saved
  19. as lossless PNG or lossy JNG images.
  20. Every frame can be in different data format.
  21. </par>
  22. <par>
  23. For information about supported data formats of individual frames look
  24. at PNG and JNG file formats, which are internally used to store frames.
  25. </par>
  26. <linklist>
  27. <title>MNG frame formats</title>
  28. <lslink url="Png.xml">PNG File Format</lslink>
  29. <lslink url="Jng.xml">JNG File Format</lslink>
  30. </linklist>
  31. <par>
  32. When working with MNG files you can find useful some options
  33. which can be set by <ref>SetOption</ref> function and their current values
  34. can be get by <ref>GetOption</ref> function.
  35. Or you can set them by modifying properties of <ref>TMNGFileFormat</ref>
  36. class.
  37. </par>
  38. <table>
  39. <title>Options Related to MNG Files</title>
  40. <row>
  41. <th>OptionId</th>
  42. <th>Allowed Values</th>
  43. <th>Usage</th>
  44. </row>
  45. <row>
  46. <td><ref>ImagingMNGLossyCompression</ref></td>
  47. <td><b>0 (False)</b> or <b>1 (True)</b></td>
  48. <td>Specifies whether MNG animation frames are saved with lossy or lossless
  49. compression. Lossless frames are saved as PNG images and lossy frames are
  50. saved as JNG images.
  51. Default value is <b>0</b>. </td>
  52. </row>
  53. <row>
  54. <td><ref>ImagingMNGLossyAlpha</ref></td>
  55. <td><b>0 (False)</b> or <b>1 (True)</b></td>
  56. <td> Defines whether alpha channel of lossy compressed MNG frames
  57. (when ImagingMNGLossyCompression is 1) is lossy compressed too.
  58. Default value is <b>0</b>. </td>
  59. </row>
  60. <row>
  61. <td><ref>ImagingMNGPreFilter</ref></td>
  62. <td><b>0, 1, 2, 3, 4, 5, 6</b></td>
  63. <td>Sets precompression filter used when saving MNG frames as PNG images.
  64. Allowed values are:
  65. <list>
  66. <li>0 - None Filter</li>
  67. <li>1 - Sub Filter</li>
  68. <li>2 - Up Filter</li>
  69. <li>3 - Average Filter</li>
  70. <li>4 - Paeth Filter</li>
  71. <li>5 - Use 0 for indexed/gray images and 4 for RGB/ARGB images</li>
  72. <li>6 - Adaptive filtering - use best filter for each scanline - very slow</li>
  73. </list>
  74. Note that filters 3 and 4 are much slower than filters 1 and 2.
  75. Default value is <b>5</b>. </td>
  76. </row>
  77. <row>
  78. <td><ref>ImagingMNGCompressLevel</ref></td>
  79. <td><b>0 (no compression)</b> to <b>9 (best compression)</b></td>
  80. <td>Sets ZLib compression level used when saving MNG frames as PNG images.
  81. Default value is <b>5</b>. </td>
  82. </row>
  83. <row>
  84. <td><ref>ImagingMNGQuality</ref></td>
  85. <td><b>1</b> to <b>100</b></td>
  86. <td>Specifies compression quality used when saving MNG frames as JNG images.
  87. Higher value means worse compression/better image quality/larger file size.
  88. Default value is <b>90</b>.</td>
  89. </row>
  90. <row>
  91. <td><ref>ImagingMNGProgressive</ref></td>
  92. <td><b>0 (False)</b> or <b>1 (True)</b></td>
  93. <td>Specifies whether images are saved in progressive format when saving MNG
  94. frames as JNG images.
  95. Progressive JPEG rearranges the stored data into a series of scans of
  96. increasing quality. In situations where a JPEG file is transmitted across a
  97. slow communications link, a decoder can generate a low-quality image very
  98. quickly from the first scan, then gradually improve the displayed quality as
  99. more scans are received. Default value is <b>0 (False)</b>. </td>
  100. </row>
  101. </table>
  102. </chapter>
  103. </doc>