www.pudn.com > ShowImage.rar > ImageAPI.cpp
//--------------------------------------------------------------------------- #include#pragma hdrstop #include "ImageAPI.h" //--------------------------------------------------------------------------- #pragma package(smart_init) void ProResample(Byte* lphdat, Byte* lpreshdat, int orgWidth,int orgHeight,int resWidth,int resHeight) { DWORD x; float scale,conx,cony,u,v; int orgx,orgy; scale=orgWidth/(float)resWidth; for(int i=0;i