<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV><FONT face=宋体 color=#0000bf size=3>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 12pt"><FONT color=#000000><FONT face=Calibri>Hello everyone!<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 12pt"><o:p><FONT face=Calibri color=#000000> </FONT></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 12pt"><FONT color=#000000><FONT face=Calibri>As we know, cairo lib don’t support the creation of a surface from BMP directly.<o:p></o:p></FONT></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 12pt"><FONT color=#000000><FONT face=Calibri>we could do it with GTK+. However, is there some other way to import BMP or dib <o:p></o:p></FONT></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 12pt"><FONT color=#000000><FONT face=Calibri>in cairo without the suppot of other libs?<o:p></o:p></FONT></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 12pt"><o:p><FONT face=Calibri color=#000000> </FONT></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face=Calibri><SPAN lang=EN-US style="FONT-SIZE: 12pt"><FONT color=#000000>I had tried to do it whit </FONT></SPAN><SPAN lang=EN style="FONT-SIZE: 12pt; mso-ansi-language: EN"><A title="cairo_image_surface_create_for_data ()" href="http://www.cairographics.org/manual/cairo-image-surface.html#cairo-image-surface-create-for-data">cairo_image_surface_create_for_data</A></SPAN><FONT color=#000000><SPAN lang=EN-US style="FONT-SIZE: 12pt">, </SPAN><SPAN lang=EN style="FONT-SIZE: 12pt; mso-ansi-language: EN">but failed </SPAN></FONT></FONT><FONT color=#000000><SPAN lang=EN style="FONT-SIZE: 12pt; FONT-FAMILY: Wingdings; mso-ansi-language: EN">L</SPAN><SPAN lang=EN style="FONT-SIZE: 12pt; mso-ansi-language: EN"><FONT face=Calibri>. <o:p></o:p></FONT></SPAN></FONT></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN style="FONT-SIZE: 12pt; mso-ansi-language: EN"><FONT color=#000000><FONT face=Calibri>I could not see the right image.<o:p></o:p></FONT></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN style="FONT-SIZE: 12pt; mso-ansi-language: EN"><FONT color=#000000><FONT face=Calibri>Do you have any solution?<o:p></o:p></FONT></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN style="FONT-SIZE: 12pt; mso-ansi-language: EN"><o:p><FONT face=Calibri color=#000000> </FONT></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN style="FONT-SIZE: 12pt; mso-ansi-language: EN"><FONT color=#000000><FONT face=Calibri>Thanks~<o:p></o:p></FONT></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN style="mso-ansi-language: EN"><o:p><FONT face=Calibri color=#000000> </FONT></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN style="mso-ansi-language: EN"><FONT color=#000000><FONT face=Calibri>That is my attempt below:<o:p></o:p></FONT></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN style="mso-ansi-language: EN"><o:p><FONT face=Calibri color=#000000> </FONT></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体">//===========================================================================<o:p></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体">// Summary:<o:p></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体">// BMPReader class<o:p></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体">// Header:<o:p></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体">// BMPReader.h<o:p></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体">// Remarks:<o:p></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体">// Readin BMP & create cairo surface<o:p></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体">//===========================================================================</SPAN><SPAN lang=EN style="mso-ansi-language: EN"><o:p></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN style="mso-ansi-language: EN"><o:p><FONT face=Calibri color=#000000> </FONT></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 新宋体">#ifndef</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">__BMPREADER_H__<o:p></o:p></SPAN></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 新宋体">#define</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">__BMPREADER_H__<o:p></o:p></SPAN></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: #010001; FONT-FAMILY: 新宋体"><o:p> </o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体">//===========================================================================<o:p></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体"><o:p> </o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 新宋体">#include</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: #a31515"><fstream><o:p></o:p></SPAN></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 新宋体">#include</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: #a31515"><iostream><o:p></o:p></SPAN></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: #a31515; FONT-FAMILY: 新宋体"><o:p> </o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体">//===========================================================================<o:p></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体"><o:p> </o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体">// Struct Member Alignment<o:p></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体">// default 8 bytes<o:p></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体">// here 1 byte alignment<o:p></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 新宋体">#pragma</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">pack</SPAN><FONT color=#000000>(1)<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><o:p><FONT color=#000000> </FONT></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体">//===========================================================================<o:p></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体"><o:p> </o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 新宋体">using</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">namespace</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">std</SPAN><FONT color=#000000>;<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><o:p><FONT color=#000000> </FONT></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体">//===========================================================================<o:p></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体">// Struct BMPFormat<o:p></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体">//===========================================================================<o:p></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体"><o:p> </o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体">// BMP include file head and info head<o:p></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 新宋体">struct</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">BMPFormat<o:p></o:p></SPAN></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000>{<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">short</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">Head_Flag</SPAN><FONT color=#000000>; </FONT><SPAN style="COLOR: green">//1 00-01<o:p></o:p></SPAN></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">int</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">File_Size</SPAN><FONT color=#000000>; </FONT><SPAN style="COLOR: green">//2 02-05<o:p></o:p></SPAN></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">int</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">Reserved</SPAN><FONT color=#000000>; </FONT><SPAN style="COLOR: green">//3 06-09<o:p></o:p></SPAN></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">int</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">Data_Offset</SPAN><FONT color=#000000>; </FONT><SPAN style="COLOR: green">//4 0A-0D<o:p></o:p></SPAN></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">int</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">Head_Info_Size</SPAN><FONT color=#000000>; </FONT><SPAN style="COLOR: green">//5 0E-11<o:p></o:p></SPAN></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">int</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">Pic_Width</SPAN><FONT color=#000000>; </FONT><SPAN style="COLOR: green">//6 12-15<o:p></o:p></SPAN></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">int</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">Pic_High</SPAN><FONT color=#000000>; </FONT><SPAN style="COLOR: green">//7 16-19<o:p></o:p></SPAN></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">short</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">Pic_Plans</SPAN><FONT color=#000000>; </FONT><SPAN style="COLOR: green">//8 1A-1B<o:p></o:p></SPAN></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">short</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">Color_Bit</SPAN><FONT color=#000000>; </FONT><SPAN style="COLOR: green">//9 <o:p></o:p></SPAN></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">int</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">Compress</SPAN><FONT color=#000000>; </FONT><SPAN style="COLOR: green">//10<o:p></o:p></SPAN></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">int</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">Data_Size</SPAN><FONT color=#000000>; </FONT><SPAN style="COLOR: green">//11<o:p></o:p></SPAN></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">int</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">Pic_Xppm</SPAN><FONT color=#000000>; </FONT><SPAN style="COLOR: green">//12<o:p></o:p></SPAN></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">int</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">Pic_Yppm</SPAN><FONT color=#000000>; </FONT><SPAN style="COLOR: green">//13<o:p></o:p></SPAN></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">int</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">Color_Used</SPAN><FONT color=#000000>; </FONT><SPAN style="COLOR: green">//14<o:p></o:p></SPAN></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">int</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">Color_Imp</SPAN><FONT color=#000000>; </FONT><SPAN style="COLOR: green">//15<o:p></o:p></SPAN></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000>};<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><o:p><FONT color=#000000> </FONT></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体">//===========================================================================<o:p></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体">// class BMPReader<o:p></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体">//===========================================================================<o:p></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体"><o:p> </o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 新宋体">class</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">BMPReader<o:p></o:p></SPAN></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000>{<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 新宋体">public</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000>:<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">BMPReader</SPAN><FONT color=#000000>(</FONT><SPAN style="COLOR: blue">const</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: blue">char</SPAN><FONT color=#000000> *</FONT><SPAN style="COLOR: #010001">pstrFName</SPAN><FONT color=#000000>);<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> ~</FONT><SPAN style="COLOR: #010001">BMPReader</SPAN><FONT color=#000000>();<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 新宋体">protected</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000>:<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">BMPReader</SPAN><FONT color=#000000>(){};<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><o:p><FONT color=#000000> </FONT></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 新宋体">public</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000>:<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">unsigned</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: blue">char</SPAN><FONT color=#000000> * </FONT><SPAN style="COLOR: #010001">GetData</SPAN><FONT color=#000000>() </FONT><SPAN style="COLOR: blue">const</SPAN><FONT color=#000000>;<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">cairo_format_t</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">GetCairoFormat</SPAN><FONT color=#000000>() </FONT><SPAN style="COLOR: blue">const</SPAN><FONT color=#000000>;<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">int</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">GetHeight</SPAN><FONT color=#000000>() </FONT><SPAN style="COLOR: blue">const</SPAN><FONT color=#000000>;<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">int</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">GetWidth</SPAN><FONT color=#000000>() </FONT><SPAN style="COLOR: blue">const</SPAN><FONT color=#000000>;<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">int</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">GetRowsStride</SPAN><FONT color=#000000>() </FONT><SPAN style="COLOR: blue">const</SPAN><FONT color=#000000>;<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><o:p><FONT color=#000000> </FONT></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 新宋体">private</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000>:<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">ifstream</SPAN><FONT color=#000000> * </FONT><SPAN style="COLOR: #010001">m_pfBmp</SPAN><FONT color=#000000>;<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><o:p><FONT color=#000000> </FONT></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">BMPFormat</SPAN><FONT color=#000000> * </FONT><SPAN style="COLOR: #010001">m_pBMPFormat</SPAN><FONT color=#000000>;<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">unsigned</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: blue">char</SPAN><FONT color=#000000> * </FONT><SPAN style="COLOR: #010001">m_pData</SPAN><FONT color=#000000>;<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> <o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000>};<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><o:p><FONT color=#000000> </FONT></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体">//===========================================================================<o:p></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体"><o:p> </o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体">// resume default struct alignment<o:p></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 新宋体">#pragma</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">pack</SPAN><FONT color=#000000>(8)<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><o:p><FONT color=#000000> </FONT></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体">//===========================================================================<o:p></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体"><o:p> </o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 新宋体">#endif</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: green">// __BMPREADER_H__</SPAN></SPAN><SPAN lang=EN style="mso-ansi-language: EN"><o:p></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%; TEXT-ALIGN: left" align=left><SPAN lang=EN style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ansi-language: EN"><o:p><FONT color=#000000> </FONT></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体">//===========================================================================<o:p></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体">// Summary:<o:p></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体">// BMPReader class<o:p></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体">// Usage:<o:p></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体">// BMPReader.cpp<o:p></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体">// Remarks:<o:p></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体">// Readin BMP & create cairo surface <o:p></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体">//===========================================================================<o:p></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体"><o:p> </o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 新宋体">#include</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: #a31515">"stdafx.h"<o:p></o:p></SPAN></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 新宋体">#include</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: #a31515">"BMPReader.h"<o:p></o:p></SPAN></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: #a31515; FONT-FAMILY: 新宋体"><o:p> </o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体">//===========================================================================<o:p></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体"><o:p> </o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: #010001; FONT-FAMILY: 新宋体">BMPReader</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000>::</FONT><SPAN style="COLOR: #010001">BMPReader</SPAN><FONT color=#000000>( </FONT><SPAN style="COLOR: blue">const</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: blue">char</SPAN><FONT color=#000000> *</FONT><SPAN style="COLOR: #010001">pstrFName</SPAN><FONT color=#000000>)<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000>{<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: green">// menbers' initialization<o:p></o:p></SPAN></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">m_pfBmp</SPAN><FONT color=#000000> = </FONT><SPAN style="COLOR: #010001">NULL</SPAN><FONT color=#000000>;<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">m_pData</SPAN><FONT color=#000000> = </FONT><SPAN style="COLOR: #010001">NULL</SPAN><FONT color=#000000>;<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">m_pBMPFormat</SPAN><FONT color=#000000> = </FONT><SPAN style="COLOR: #010001">NULL</SPAN><FONT color=#000000>;<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><o:p><FONT color=#000000> </FONT></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">assert</SPAN><FONT color=#000000>(</FONT><SPAN style="COLOR: #010001">pstrFName</SPAN><FONT color=#000000> != </FONT><SPAN style="COLOR: #010001">NULL</SPAN><FONT color=#000000>);<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><o:p><FONT color=#000000> </FONT></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: green">// new ifstream<o:p></o:p></SPAN></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">m_pfBmp</SPAN><FONT color=#000000> = </FONT><SPAN style="COLOR: blue">new</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">ifstream</SPAN><FONT color=#000000>;<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">m_pfBmp</SPAN><FONT color=#000000>-></FONT><SPAN style="COLOR: #010001">open</SPAN><FONT color=#000000>(</FONT><SPAN style="COLOR: #010001">pstrFName</SPAN><FONT color=#000000>, </FONT><SPAN style="COLOR: #010001">ios_base</SPAN><FONT color=#000000>::</FONT><SPAN style="COLOR: #010001">binary</SPAN><FONT color=#000000>);<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">if</SPAN><FONT color=#000000> (!</FONT><SPAN style="COLOR: #010001">m_pfBmp</SPAN><FONT color=#000000>)<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> {<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">cout</SPAN><FONT color=#000000> << </FONT><SPAN style="COLOR: #010001">pstrFName</SPAN><FONT color=#000000> << </FONT><SPAN style="COLOR: #a31515">" can not be opened !"</SPAN><FONT color=#000000><< </FONT><SPAN style="COLOR: #010001">endl</SPAN><FONT color=#000000>;<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">return</SPAN><FONT color=#000000>;<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> }<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><o:p><FONT color=#000000> </FONT></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: green">// readin BMPFormat 0x00-0x35<o:p></o:p></SPAN></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">m_pBMPFormat</SPAN><FONT color=#000000> = </FONT><SPAN style="COLOR: blue">new</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">BMPFormat</SPAN><FONT color=#000000>;<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">m_pfBmp</SPAN><FONT color=#000000>-></FONT><SPAN style="COLOR: #010001">seekg</SPAN><FONT color=#000000>(0, </FONT><SPAN style="COLOR: #010001">ios_base</SPAN><FONT color=#000000>::</FONT><SPAN style="COLOR: #010001">beg</SPAN><FONT color=#000000>);<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">m_pfBmp</SPAN><FONT color=#000000>-></FONT><SPAN style="COLOR: #010001">read</SPAN><FONT color=#000000>((</FONT><SPAN style="COLOR: blue">char</SPAN><FONT color=#000000> *)</FONT><SPAN style="COLOR: #010001">m_pBMPFormat</SPAN><FONT color=#000000>, </FONT><SPAN style="COLOR: blue">sizeof</SPAN><FONT color=#000000>(</FONT><SPAN style="COLOR: #010001">BMPFormat</SPAN><FONT color=#000000>));<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> <o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: green">// readin Data 0x36-Data_Size<o:p></o:p></SPAN></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">m_pData</SPAN><FONT color=#000000> = </FONT><SPAN style="COLOR: blue">new</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: blue">unsigned</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: blue">char</SPAN><FONT color=#000000>[</FONT><SPAN style="COLOR: #010001">m_pBMPFormat</SPAN><FONT color=#000000>-></FONT><SPAN style="COLOR: #010001">Data_Size</SPAN><FONT color=#000000>];<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">m_pfBmp</SPAN><FONT color=#000000>-></FONT><SPAN style="COLOR: #010001">seekg</SPAN><FONT color=#000000>(0x36, </FONT><SPAN style="COLOR: #010001">ios_base</SPAN><FONT color=#000000>::</FONT><SPAN style="COLOR: #010001">beg</SPAN><FONT color=#000000>);<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">m_pfBmp</SPAN><FONT color=#000000>-></FONT><SPAN style="COLOR: #010001">read</SPAN><FONT color=#000000>((</FONT><SPAN style="COLOR: blue">char</SPAN><FONT color=#000000> *)</FONT><SPAN style="COLOR: #010001">m_pData</SPAN><FONT color=#000000>, </FONT><SPAN style="COLOR: #010001">m_pBMPFormat</SPAN><FONT color=#000000>-></FONT><SPAN style="COLOR: #010001">Data_Size</SPAN><FONT color=#000000>);<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><o:p><FONT color=#000000> </FONT></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: green">// close file<o:p></o:p></SPAN></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">m_pfBmp</SPAN><FONT color=#000000>-></FONT><SPAN style="COLOR: #010001">close</SPAN><FONT color=#000000>();<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000>}<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><o:p><FONT color=#000000> </FONT></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: #010001; FONT-FAMILY: 新宋体">cairo_format_t</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">BMPReader</SPAN><FONT color=#000000>::</FONT><SPAN style="COLOR: #010001">GetCairoFormat</SPAN><FONT color=#000000>() </FONT><SPAN style="COLOR: blue">const<o:p></o:p></SPAN></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000>{<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">if</SPAN><FONT color=#000000> (</FONT><SPAN style="COLOR: #010001">m_pBMPFormat</SPAN><FONT color=#000000>)<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> {<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">switch</SPAN><FONT color=#000000> (</FONT><SPAN style="COLOR: #010001">m_pBMPFormat</SPAN><FONT color=#000000>-></FONT><SPAN style="COLOR: #010001">Color_Bit</SPAN><FONT color=#000000>)<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> {<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">case</SPAN><FONT color=#000000> 32: </FONT><SPAN style="COLOR: blue">return</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">CAIRO_FORMAT_ARGB32</SPAN><FONT color=#000000>;<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">case</SPAN><FONT color=#000000> 24: </FONT><SPAN style="COLOR: blue">return</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">CAIRO_FORMAT_RGB24</SPAN><FONT color=#000000>;<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">case</SPAN><FONT color=#000000> 8: </FONT><SPAN style="COLOR: blue">return</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">CAIRO_FORMAT_A8</SPAN><FONT color=#000000>;<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">case</SPAN><FONT color=#000000> 1: </FONT><SPAN style="COLOR: blue">return</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">CAIRO_FORMAT_A1</SPAN><FONT color=#000000>;<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">default</SPAN><FONT color=#000000>: </FONT><SPAN style="COLOR: #010001">cout</SPAN><FONT color=#000000> << </FONT><SPAN style="COLOR: #a31515">"Colorbit "</SPAN><FONT color=#000000> << </FONT><SPAN style="COLOR: #010001">m_pBMPFormat</SPAN><FONT color=#000000>-></FONT><SPAN style="COLOR: #010001">Color_Bit</SPAN><FONT color=#000000> << </FONT><SPAN style="COLOR: #a31515">" is unsupported !"</SPAN><FONT color=#000000> << </FONT><SPAN style="COLOR: #010001">endl</SPAN><FONT color=#000000>;<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> }<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> }<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: green">// </SPAN></SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体">函数序号改写<SPAN lang=EN-US><o:p></o:p></SPAN></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: green">// </SPAN></SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体">返回值只表示状态<SPAN lang=EN-US><o:p></o:p></SPAN></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000>}<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><o:p><FONT color=#000000> </FONT></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 新宋体">int</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">BMPReader</SPAN><FONT color=#000000>::</FONT><SPAN style="COLOR: #010001">GetHeight</SPAN><FONT color=#000000>() </FONT><SPAN style="COLOR: blue">const<o:p></o:p></SPAN></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000>{<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">if</SPAN><FONT color=#000000> (</FONT><SPAN style="COLOR: #010001">m_pBMPFormat</SPAN><FONT color=#000000>)<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> {<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">return</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">m_pBMPFormat</SPAN><FONT color=#000000>-></FONT><SPAN style="COLOR: #010001">Pic_High</SPAN><FONT color=#000000>;<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> }<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">return</SPAN><FONT color=#000000> -1;<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000>}<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><o:p><FONT color=#000000> </FONT></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 新宋体">int</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">BMPReader</SPAN><FONT color=#000000>::</FONT><SPAN style="COLOR: #010001">GetWidth</SPAN><FONT color=#000000>() </FONT><SPAN style="COLOR: blue">const<o:p></o:p></SPAN></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000>{<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">if</SPAN><FONT color=#000000> (</FONT><SPAN style="COLOR: #010001">m_pBMPFormat</SPAN><FONT color=#000000>)<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> {<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">return</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">m_pBMPFormat</SPAN><FONT color=#000000>-></FONT><SPAN style="COLOR: #010001">Pic_Width</SPAN><FONT color=#000000>;<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> }<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">return</SPAN><FONT color=#000000> -1;<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000>}<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><o:p><FONT color=#000000> </FONT></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 新宋体">int</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">BMPReader</SPAN><FONT color=#000000>::</FONT><SPAN style="COLOR: #010001">GetRowsStride</SPAN><FONT color=#000000>() </FONT><SPAN style="COLOR: blue">const<o:p></o:p></SPAN></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000>{<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">if</SPAN><FONT color=#000000> (</FONT><SPAN style="COLOR: #010001">m_pBMPFormat</SPAN><FONT color=#000000>)<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> {<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: green">// stride</SPAN></SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体">的大小由<SPAN lang=EN-US>Cairo</SPAN>根据<SPAN lang=EN-US>width</SPAN>定制<SPAN lang=EN-US><o:p></o:p></SPAN></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">return</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">cairo_format_stride_for_width</SPAN><FONT color=#000000>(</FONT><SPAN style="COLOR: #010001">GetCairoFormat</SPAN><FONT color=#000000>(), </FONT><SPAN style="COLOR: #010001">GetWidth</SPAN><FONT color=#000000>());<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> }<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">return</SPAN><FONT color=#000000> -1;<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000>}<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><o:p><FONT color=#000000> </FONT></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 新宋体">unsigned</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">char</SPAN><FONT color=#000000> * </FONT><SPAN style="COLOR: #010001">BMPReader</SPAN><FONT color=#000000>::</FONT><SPAN style="COLOR: #010001">GetData</SPAN><FONT color=#000000>() </FONT><SPAN style="COLOR: blue">const<o:p></o:p></SPAN></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000>{<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">if</SPAN><FONT color=#000000> (</FONT><SPAN style="COLOR: #010001">m_pData</SPAN><FONT color=#000000>)<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> {<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">return</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">m_pData</SPAN><FONT color=#000000>;<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> }<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">return</SPAN><FONT color=#000000> 0;<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000>}<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><o:p><FONT color=#000000> </FONT></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: #010001; FONT-FAMILY: 新宋体">BMPReader</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000>::~</FONT><SPAN style="COLOR: #010001">BMPReader</SPAN><FONT color=#000000>()<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000>{<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">if</SPAN><FONT color=#000000> (</FONT><SPAN style="COLOR: #010001">m_pBMPFormat</SPAN><FONT color=#000000>)<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> {<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">delete</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">m_pBMPFormat</SPAN><FONT color=#000000>;<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">m_pBMPFormat</SPAN><FONT color=#000000> = </FONT><SPAN style="COLOR: #010001">NULL</SPAN><FONT color=#000000>;<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> }<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">if</SPAN><FONT color=#000000> (</FONT><SPAN style="COLOR: #010001">m_pData</SPAN><FONT color=#000000>)<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> {<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">delete</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">m_pData</SPAN><FONT color=#000000>;<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">m_pData</SPAN><FONT color=#000000> = </FONT><SPAN style="COLOR: #010001">NULL</SPAN><FONT color=#000000>;<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> }<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">if</SPAN><FONT color=#000000> (</FONT><SPAN style="COLOR: #010001">m_pfBmp</SPAN><FONT color=#000000>)<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> {<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">delete</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">m_pfBmp</SPAN><FONT color=#000000>;<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">m_pfBmp</SPAN><FONT color=#000000> = </FONT><SPAN style="COLOR: #010001">NULL</SPAN><FONT color=#000000>;<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> }<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; LINE-HEIGHT: 150%; FONT-FAMILY: 新宋体"><FONT color=#000000>}<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; LINE-HEIGHT: 150%; FONT-FAMILY: 新宋体"><o:p><FONT color=#000000> </FONT></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; LINE-HEIGHT: 150%; FONT-FAMILY: 新宋体"><FONT color=#000000>//---------------------------------------------------------------------<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; LINE-HEIGHT: 150%; FONT-FAMILY: 新宋体"><FONT color=#000000>// main<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; LINE-HEIGHT: 150%; FONT-FAMILY: 新宋体"><FONT color=#000000>//---------------------------------------------------------------------<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">char</SPAN><FONT color=#000000> * </FONT><SPAN style="COLOR: #010001">pBmpName</SPAN><FONT color=#000000> = </FONT><SPAN style="COLOR: #a31515">"rgb.bmp"</SPAN><FONT color=#000000>;<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">BMPReader</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">bmpRdr</SPAN><FONT color=#000000>(</FONT><SPAN style="COLOR: #010001">pBmpName</SPAN><FONT color=#000000>);<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><o:p><FONT color=#000000> </FONT></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">cairo_format_t</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">cftBMPFormat</SPAN><FONT color=#000000> = </FONT><SPAN style="COLOR: #010001">bmpRdr</SPAN><FONT color=#000000>.</FONT><SPAN style="COLOR: #010001">GetCairoFormat</SPAN><FONT color=#000000>();<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">unsigned</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: blue">char</SPAN><FONT color=#000000> * </FONT><SPAN style="COLOR: #010001">pcBMPData</SPAN><FONT color=#000000> = </FONT><SPAN style="COLOR: #010001">bmpRdr</SPAN><FONT color=#000000>.</FONT><SPAN style="COLOR: #010001">GetData</SPAN><FONT color=#000000>();<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">int</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">nBMPHeight</SPAN><FONT color=#000000> = </FONT><SPAN style="COLOR: #010001">bmpRdr</SPAN><FONT color=#000000>.</FONT><SPAN style="COLOR: #010001">GetHeight</SPAN><FONT color=#000000>();<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">int</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">nBMPWidth</SPAN><FONT color=#000000> = </FONT><SPAN style="COLOR: #010001">bmpRdr</SPAN><FONT color=#000000>.</FONT><SPAN style="COLOR: #010001">GetWidth</SPAN><FONT color=#000000>();<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">int</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">nBMPStride</SPAN><FONT color=#000000> = </FONT><SPAN style="COLOR: #010001">bmpRdr</SPAN><FONT color=#000000>.</FONT><SPAN style="COLOR: #010001">GetRowsStride</SPAN><FONT color=#000000>();<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><o:p><FONT color=#000000> </FONT></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">pImage</SPAN><FONT color=#000000> = </FONT><SPAN style="COLOR: #010001">cairo_image_surface_create_for_data</SPAN><FONT color=#000000>(<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">pcBMPData</SPAN><FONT color=#000000>,<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">cairo_format_t</SPAN><FONT color=#000000>(1),<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">nBMPWidth</SPAN><FONT color=#000000>,<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">nBMPHeight</SPAN><FONT color=#000000>,<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; LINE-HEIGHT: 150%; FONT-FAMILY: 新宋体"><FONT color=#000000> </FONT><SPAN style="COLOR: #010001">nBMPStride</SPAN><FONT color=#000000>);<o:p></o:p></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; LAYOUT-GRID-MODE: char; LINE-HEIGHT: 150%; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体"><o:p><FONT color=#000000> </FONT></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><o:p><FONT face=Calibri color=#000000> </FONT></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><o:p><FONT face=Calibri color=#000000> </FONT></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; LAYOUT-GRID-MODE: char; LINE-HEIGHT: 150%; TEXT-ALIGN: left" align=left><SPAN lang=EN-US style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体"><o:p><FONT color=#000000> </FONT></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><o:p><FONT face=Calibri color=#000000> </FONT></o:p></SPAN></DIV></FONT></DIV></td></tr></table><br>
<hr size=1><a href="http://cn.rd.yahoo.com/mail_cn/tagline/card/*http://card.mail.cn.yahoo.com/"> 好玩贺卡等你发,邮箱贺卡全新上线!</a>