对352*288的RGB进行180度旋转

for(int i=0,int j=352*288*3;i<352*288*3,j>=0;i+=3,j-=3)

{

temp[i]=rgb[j-3];

temp[i+1]=rgb[j-2];

temp[i+2]=rgb[j-1];

}

此算法可实现windows下的图像的旋转

原文地址:https://www.cnblogs.com/rainbowzc/p/2422352.html