<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1276" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi again,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Here is the&nbsp;C++ code.&nbsp;It shows how to 
convert a sequence of BMPs to an uncompressed AVI, and how&nbsp;to grab a frame 
from an existing AVI and write it to a BMP.&nbsp;The code&nbsp;is based on a set 
of freeware&nbsp;functions called avi utils or something similar (the author's 
homepage has some good&nbsp;info, I forget the URL but it should be quite easy 
to find on Google), and the BMP writing part is a&nbsp;quick modification to 
some other code I had lying around (again based on an&nbsp;example I found on 
the net, but tweaked to generate the BMP header because when you grab a BMP out 
of an AVI into memory there is no header). </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>If you want to grab and write 8 bit bitmaps rather 
than 16, 24, or 32 bit then the code needs a slight tweak so that the infoheader 
size is computed as:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>lpbi + lpbi-&gt;biSize + 256 * 
sizeof(RGBQUAD);</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>But if you only want to generate AVIs you shouldn't 
need to worry about that anyway.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Hope this is of use,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Alex Peckham</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Bristol University</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;</FONT></DIV></BODY></HTML>