od.  The code
 runs
through a few steps:
</p><ol><li>Converts the memory for the quantise image, source and result DIBs into arrays:
<span class="code">bDibStrip</span>, <span class="code">bDib</span> and 
<span class="code">bDibTo</span> respectively.</li><li>Loops through the source image DIB, averaging the red, green, blue and gray
components (gray is derived using the ITU formula 
<span class="code">(222 * Red + 707 * Green + 71 Blue)/1000</span>). The code
as it stands assumes that any pixels outside t