Targa.xml 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <?xml-stylesheet type="text/xsl" href="../Xsl/doc2html.xsl"?>
  3. <doc>
  4. <title>Truevision Targa File Format</title>
  5. <chapter>
  6. <title>Truevision Targa File Format</title>
  7. <par>
  8. Truevision defined the TGA file format in 1984 for use with its
  9. first videographics products. It was the first truecolor
  10. file format widely available. They are still widely used for
  11. images with alpha channels.
  12. It can store indexed, grayscale, RGB and ARGB images.
  13. Targas can be uncompressed or compressed with RLE (run length encoding)
  14. algorithm.
  15. </par>
  16. <table>
  17. <title>Targa File Format Support</title>
  18. <row>
  19. <th>Format</th>
  20. <th>TImageFormat equivalent</th>
  21. <th>Loading</th>
  22. <th>Saving</th>
  23. </row>
  24. <row>
  25. <td>8 bit indexed</td>
  26. <td><icode>ifIndex8</icode></td>
  27. <td>Yes</td><td>Yes</td>
  28. </row>
  29. <row>
  30. <td>8 bit grayscale</td>
  31. <td><icode>ifGray8</icode></td>
  32. <td>Yes</td><td>Yes</td>
  33. </row>
  34. <row>
  35. <td>16 bit ARGB</td>
  36. <td><icode>ifA1R5G5B5</icode></td>
  37. <td>Yes</td><td>Yes</td>
  38. </row>
  39. <row>
  40. <td>24 bit RGB</td>
  41. <td><icode>ifR8G8B8</icode></td>
  42. <td>Yes</td><td>Yes</td>
  43. </row>
  44. <row>
  45. <td>32 bit ARGB</td>
  46. <td><icode>ifA8R8G8B8</icode></td>
  47. <td>Yes</td><td>Yes</td>
  48. </row>
  49. <row>
  50. <td>All above but RLE compressed</td>
  51. <td><icode>-</icode></td>
  52. <td>Yes</td><td>Yes</td>
  53. </row>
  54. <row>
  55. <td>8 bit indexed Huffman, Delta, RLE</td>
  56. <td><icode>ifIndex8</icode></td>
  57. <td>No</td><td>No</td>
  58. </row>
  59. <row>
  60. <td>8 bit indexed Huffman, Delta, RLE, 4-pass</td>
  61. <td><icode>ifIndex8</icode></td>
  62. <td>No</td><td>No</td>
  63. </row>
  64. </table>
  65. <note>
  66. If anyone has some information about two last formats (TGA image type
  67. codes 32 and 33) please tell me.
  68. </note>
  69. <par>
  70. When working with Targa files you can find useful some options
  71. which can be set by <ref>SetOption</ref> function and their current values
  72. can be get by <ref>GetOption</ref> function.
  73. Or you can set them by modifying properties of <ref>TTargaFileFormat</ref>
  74. class.
  75. </par>
  76. <table>
  77. <title>Options Related to Targa Files</title>
  78. <row>
  79. <th>OptionId</th>
  80. <th>Allowed Values</th>
  81. <th>Usage</th>
  82. </row>
  83. <row>
  84. <td><ref>ImagingTargaRLE</ref></td>
  85. <td><b>0 (false)</b> or <b>1 (true)</b></td>
  86. <td>Indicates whether Targa image will be saved with or without
  87. RLE compression (efficient only for images
  88. with large areas of the same color).
  89. Default value is <b>0 (false)</b>. </td>
  90. </row>
  91. </table>
  92. </chapter>
  93. </doc>