Advertisement
Guest User

Untitled

a guest
Nov 21st, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.52 KB | None | 0 0
  1.     y = source->header.biHeight - (y + h);
  2.     //assert(y >= 0 && y < source->header.biHeight);
  3.     for (uint32_t i = y; i < y + h; ++i) {
  4.         //assert(i < source->header.biHeight);
  5.         for (uint32_t j = 3 * x; j < 3 * (x + w); ++j) {
  6.             //assert(j < source->count);
  7.             //assert(i - y >= 0 && j - 3 * x >= 0);
  8.             //assert(i - y < result->header.biHeight);
  9.             //assert(j - 3 * x < result->count);
  10.             result->data[i - y][j - 3 * x] = source->data[i][j];
  11.         }
  12.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement