<?xml version="1.0" encoding='utf-8'?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<head>
</head>

<template>
	<do type="prev" label="Lessons">
		<go href="./"/>
	</do>
</template>

<card id="main" title="02: WBMP">

<p>
WBMP images
</p>

<p>
WBMP files are uncompressed 1 bit-per-pixel (monochrome) images.
Each bit only stores black or clear (not always white) pixels.
</p>

<p>
I do not know what happens if one exceeds screen width with a
WBMP image, so for now, I'm not gonna exceed 80px width.
</p>

<p>
WBMP files have a header and then the data itself. Width is padded
to a multiple of 8 internally.
</p>

<p>
<a href="01-intro.wml">01: Intro</a><br/>
<a href="03-limits.wml">03: Limits</a><br/>
<a href="#glossary">Glossary</a><br/>
</p>

</card>

<card id="glossary" title="Glossary for C-02">

<p>
<u>Bit</u>: the smallest information unit for a computer, it can
only store a 0 or 1.
</p>

<p>
<u>Byte</u>: a unit made of 8 <b>bits</b>, the bits inside can
have any combination of 0s and 1s. This is how computers store
and use data.
</p>

<p>
<u>Header</u>: basic information about how to decode the rest
of a file, usually contains the width, height and <b>pixel</b>
format.
</p>

<p>
<u>Pixel</u>: one single dot in the screen. A screen is just a
grid of pixels.
</p>

<p>
<a href="#main">Exit glossary</a>
</p>

</card>

</wml>
