2
0

Bitmap.xml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <?xml-stylesheet type="text/xsl" href="../Xsl/doc2html.xsl"?>
  3. <doc>
  4. <title>Windows Bitmap File Format</title>
  5. <chapter>
  6. <title>Windows Bitmap File Format</title>
  7. <par>
  8. Windows bitmap files are stored in a device-independent bitmap (DIB)
  9. format
  10. that allows Windows to display the bitmap on any type of display device. The
  11. term "device independent" means that the bitmap specifies pixel color in a
  12. form independent of the method used by a display to represent color.
  13. Bitmaps can store 1, 4 and 8 bit indexed images and 16, 24
  14. and 32 RGB images. 4 and 8 bit images can also be compressed with RLE.
  15. Imaging can also read OS/2 bitmaps but can not save them.
  16. </par>
  17. <table>
  18. <title>Windows Bitmap File Format Support</title>
  19. <row>
  20. <th>Format</th>
  21. <th>TImageFormat equivalent</th>
  22. <th>Loading</th>
  23. <th>Saving</th>
  24. </row>
  25. <row>
  26. <td>1 bit indexed</td>
  27. <td><icode>ifIndex8</icode></td>
  28. <td>Yes</td><td>No</td>
  29. </row>
  30. <row>
  31. <td>4 bit indexed</td>
  32. <td><icode>ifIndex8</icode></td>
  33. <td>Yes</td><td>No</td>
  34. </row>
  35. <row>
  36. <td>8 bit indexed</td>
  37. <td><icode>ifIndex8</icode></td>
  38. <td>Yes</td><td>Yes</td>
  39. </row>
  40. <row>
  41. <td>4 bit indexed RLE compressed</td>
  42. <td><icode>ifIndex8</icode></td>
  43. <td>Yes</td><td>No</td>
  44. </row>
  45. <row>
  46. <td>8 bit indexed RLE compressed</td>
  47. <td><icode>ifIndex8</icode></td>
  48. <td>Yes</td><td>Yes</td>
  49. </row>
  50. <row>
  51. <td>16 bit 555 RGB</td>
  52. <td><icode>ifX1R5G5B5</icode></td>
  53. <td>Yes</td><td>Yes</td>
  54. </row>
  55. <row>
  56. <td>16 bit 565 RGB (note 1)</td>
  57. <td><icode>ifR5G6B5</icode></td>
  58. <td>Yes</td><td>Yes</td>
  59. </row>
  60. <row>
  61. <td>16 bit 444 RGB (note 1)</td>
  62. <td><icode>ifX4R4G4B4</icode></td>
  63. <td>Yes</td><td>Yes</td>
  64. </row>
  65. <row>
  66. <td>24 bit RGB</td>
  67. <td><icode>ifR8G8B8</icode></td>
  68. <td>Yes</td><td>Yes</td>
  69. </row>
  70. <row>
  71. <td>32 bit RGB</td>
  72. <td><icode>ifX8R8G8B8</icode></td>
  73. <td>Yes</td><td>Yes</td>
  74. </row>
  75. <row>
  76. <td>16 bit 1555 ARGB (note 2)</td>
  77. <td><icode>ifA1R5G5B5</icode></td>
  78. <td>Yes</td><td>Yes</td>
  79. </row>
  80. <row>
  81. <td>16 bit 4444 ARGB (note 2)</td>
  82. <td><icode>ifA4R4G4B4</icode></td>
  83. <td>Yes</td><td>Yes</td>
  84. </row>
  85. <row>
  86. <td>32 bit ARGB (note 2)</td>
  87. <td><icode>ifA8R8G8B8</icode></td>
  88. <td>Yes</td><td>Yes</td>
  89. </row>
  90. </table>
  91. <note>
  92. 1) Many image viewers and image editing programs do not support
  93. these 16 bit formats and treat them as X1R5G5B5 format.<br/>
  94. 2) Alpha channels in BMP files are often ignored by some (many) viewers/editors.
  95. </note>
  96. <par>
  97. When working with Bitmap files you can find useful some options
  98. which can be set by <ref>SetOption</ref> function and their current values
  99. can be get by <ref>GetOption</ref> function.
  100. Or you can set them by modifying properties of <ref>TBitmapFileFormat</ref>
  101. class.
  102. </par>
  103. <table>
  104. <title>Options Related to Bitmap Files</title>
  105. <row>
  106. <th>OptionId</th>
  107. <th>Allowed Values</th>
  108. <th>Usage</th>
  109. </row>
  110. <row>
  111. <td><ref>ImagingBitmapRLE</ref></td>
  112. <td><b>0 (false)</b> or <b>1 (true)</b></td>
  113. <td>Indicates whether 8 bit Bitmap images will be saved with or without
  114. RLE compression (efficient only for images
  115. with large areas of the same color).
  116. Default value is <b>1 (true)</b>. </td>
  117. </row>
  118. </table>
  119. </chapter>
  120. </doc>