for (int y=0;y<1024;y++) { for (int x=0;x<1280;x++) { srcx=(double)(newWidth/2-middleInFinalx+x)/dbZoom; srcy=(double)(newHeight/2-middleInFinaly+y)/dbZoom ;
Gradually enlarge the center. (615,730).
if( !(srcx>=xl && srcx<=xr && srcy>=yu && srcy<=yd))
Outer set: the center of enlargement, but in this FIG outer middle. The two required center of enlargement together, the inner and outer view of the center position deviation.