Expand|Select|Wrap|Line Numbers
- int row[height][3];
- int lastRow[height][3];
- size_t rowIdx, idx = 0;
- int cRow = startX;
- for (idx = startX ; idx < height*width; idx += width)
- {
- cRow = (idx/width);
- row[cRow][0] = redImg.data[idx];
- row[cRow][1] = greenImg.data[idx] ;
- row[cRow][2] = blueImg.data[idx];
- }
- lastRow = row;