Debian Codegraph @

doc/html/format_bitmap.html

raw
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml">
3 <head>
4 <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
5 <meta http-equiv="X-UA-Compatible" content="IE=11"/>
6 <meta name="generator" content="Doxygen 1.9.4"/>
7 <meta name="viewport" content="width=device-width, initial-scale=1"/>
8 <title>libkate: Format - bitmap</title>
9 <link href="tabs.css" rel="stylesheet" type="text/css"/>
10 <script type="text/javascript" src="jquery.js"></script>
11 <script type="text/javascript" src="dynsections.js"></script>
12 <link href="doxygen.css" rel="stylesheet" type="text/css" />
13 </head>
14 <body>
15 <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
16 <div id="titlearea">
17 <table cellspacing="0" cellpadding="0">
18 <tbody>
19 <tr id="projectrow">
20 <td id="projectalign">
21 <div id="projectname">libkate<span id="projectnumber">&#160;0.4.3</span>
22 </div>
23 </td>
24 </tr>
25 </tbody>
26 </table>
27 </div>
28 <!-- end header part -->
29 <!-- Generated by Doxygen 1.9.4 -->
30 <script type="text/javascript" src="menudata.js"></script>
31 <script type="text/javascript" src="menu.js"></script>
32 <script type="text/javascript">
33 /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
34 $(function() {
35 initMenu('',false,false,'search.php','Search');
36 });
37 /* @license-end */
38 </script>
39 <div id="main-nav"></div>
40 </div><!-- top -->
41 <div><div class="header">
42 <div class="headertitle"><div class="title">Format - bitmap </div></div>
43 </div><!--header-->
44 <div class="contents">
45 <div class="textblock"><p >A bitmap definition consists of:</p>
46 <ul>
47 <li>a <a class="el" href="format_32v.html">variable length integer</a> representing the width of the bitmap in pixels. </li>
48 <li>a <a class="el" href="format_32v.html">variable length integer</a> representing the height of the bitmap in pixels. </li>
49 <li>8 bits representing the number of bits per pixel for this bitmap (values not in the 0-7 range are an error).</li>
50 </ul>
51 <p>Then, if the number of bits per pixel is zero:</p>
52 <ul>
53 <li>8 bits representing the type of the bitmap.</li>
54 </ul>
55 <p>For type 0 (paletted bitmap):</p>
56 <ul>
57 <li>8 bits for the encoding of this bitmap</li>
58 </ul>
59 <p>For encoding 1 (RLE encoding):</p>
60 <ul>
61 <li>a <a class="el" href="format_32v.html">variable length integer</a> for the number of bits per pixel. </li>
62 <li>a <a class="el" href="format_32v.html">variable length integer</a> for the index of the default palette to use for this bitmap (-1 if none) </li>
63 <li>a <a class="el" href="format_rle.html">RLE encoded bitmap</a>.</li>
64 </ul>
65 <p>All other encodings are reserved. If one is encountered, the bitmap cannot be decoded.</p>
66 <p >For type 1 (PNG bitmap):</p>
67 <ul>
68 <li>32 bits for the number of bytes used for this bitmap's data. </li>
69 <li>That number of bytes, interpreted as a raw PNG stream.</li>
70 </ul>
71 <p>All other types are reserved. If one is encountered, the bitmap cannot be decoded.</p>
72 <p >If the number of bits per pixel is greater than zero (deprecated):</p>
73 <ul>
74 <li>a <a class="el" href="format_32v.html">variable length integer</a> representing the index of the default palette to use for this bitmap (-1 for no default palette). </li>
75 <li>a stream of bits representing the pixel indices for this bitmap, rows first, packed (eg, N bits for the first pixel, N bits for the second one, etc, N being the number of bits per pixel specified above)</li>
76 </ul>
77 <p>Next, we have a <a class="el" href="format_warp.html">warp</a>.</p>
78 <p >Bitstream version 0.4 starts making use of this warp: </p><ul>
79 <li>a <a class="el" href="format_32v.html">variable length integer</a> representing the horizontal offset to the logical center of the bitmap. </li>
80 <li>a <a class="el" href="format_32v.html">variable length integer</a> representing the vertical offset to the logical center of the bitmap.</li>
81 </ul>
82 <p>Kate bitstream 0.6 makes further use of this warp to add:</p>
83 <ul>
84 <li>a <a class="el" href="format_metadata.html">metadata</a> set.</li>
85 </ul>
86 <p>Next, the data ends. </p>
87 </div></div><!-- contents -->
88 </div><!-- PageDoc -->
89 <!-- start footer part -->
90 <hr class="footer"/><address class="footer"><small>
91 Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.4
92 </small></address>
93 </body>
94 </html>