w)            = (lsb)      = (msb)
 0b11111111 &amp; 0b00000001 = 0b00000001 = $bit_plane[0] = 0b00000001 = 0b10000000
 0b11111111 &amp; 0b00000010 = 0b00000010 = $bit_plane[1] = 0b00000001 = 0b10000000
 0b11111111 &amp; 0b00000100 = 0b00000100 = $bit_plane[2] = 0b00000001 = 0b10000000
 ...</code></pre>

<p>What is the meaning of the $type argument? (raw, lsb, msb)</p>

<ul>

<li><p>raw</p>

<p>The masked bit is on the same position in the byte than the original bit.</p>

</li>
<li><p>lsb</p>

<p>The masked