Definition at line 121 of file Bitmap.h. Referenced by SaveRgb2BitmapFile(). 00122 { 00123 for (int i=0; i<Width; i++) 00124 { 00125 for (int j=0; j<Height; j++) 00126 { 00127 // R G B --> B G R 00128 dst[(j*Width+i)*3+2] = src[(j*Width+i)*3+0]; 00129 dst[(j*Width+i)*3+1] = src[(j*Width+i)*3+1]; 00130 dst[(j*Width+i)*3+0] = src[(j*Width+i)*3+2]; 00131 } 00132 } 00133 }
|