附程序
void zoom( unsigned char* pSorc, unsigned char* pDest, int Height, int Width, int numPixels, int numLines )
{
float Ratio_X = Width/720;
float Ratio_Y = Height/576;
int Offset_X = (720-Width)/2;
int Offset_Y = (576-Height)/2;
int j = 0;
int i = 0;
int X = 0;
int Y = 0;
for( j = 0; j < numLines; j++ )
{
for( i = 0; i < numPixels; i++ )
{
Y = (int)( j*Ratio_Y + Offset_Y );
X = (int)( i*Ratio_X + Offset_X );