All pastes #535271 Raw Edit

Someone

public text v1 · immutable
·published 2007-06-04 01:35 UTC
rendered paste body
   for (int x = 0; x < width_; x++) {
      for (int y = 0; y < height_; y++) {
         int i = x * y * image->rowstride() * 8;
         int j = x * y * width_ * 8;

         data[j]   = image->data()[i+2];
         data[j+1] = image->data()[i+1];
         data[j+2] = image->data()[i];
      }
   }