<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face="Bookman Old Style">Hi,</FONT></DIV>
<DIV><FONT face="Bookman Old Style"></FONT> </DIV>
<DIV><FONT face="Bookman Old Style">You should change </FONT></DIV>
<DIV><FONT face="Bookman Old Style"></FONT> </DIV>
<DIV><FONT face="Bookman Old Style">> int iscale = gluScaleImage(GL_RGBA,
(GLint)lwidth, (GLint)lheight, <BR>> GL_UNSIGNED_BYTE, &region,
(GLint)nNewWidth, (GLint)nNewHeight, <BR>> GL_UNSIGNED_BYTE, rasterNew )
;</FONT></DIV>
<DIV><FONT face="Bookman Old Style"></FONT> </DIV>
<DIV><FONT face="Bookman Old Style">to</FONT></DIV>
<DIV><FONT face="Bookman Old Style"></FONT> </DIV>
<DIV><FONT face="Bookman Old Style">unsighed char* data = (ussigned
char*)image->GetBufferPointer();</FONT></DIV>
<DIV><FONT face="Bookman Old Style">> int iscale = gluScaleImage(GL_RGBA,
(GLint)lwidth, (GLint)lheight, <BR>> GL_UNSIGNED_BYTE, data,
(GLint)nNewWidth, (GLint)nNewHeight, <BR>> GL_UNSIGNED_BYTE, rasterNew )
;</FONT></DIV>
<DIV><FONT face="Bookman Old Style"></FONT> </DIV>
<DIV><FONT face="Bookman Old Style">Cheers,</FONT></DIV>
<DIV><FONT face="Bookman Old Style"></FONT> </DIV>
<DIV><FONT face="Bookman Old Style">Yixun Liu</FONT></DIV></BODY></HTML>