Guest User

Untitled

a guest
Apr 25th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. for(int i = 0; i < bm1.bmHeight; i++)
  2. {
  3. colOffset = 0;
  4.  
  5. for(int j = 0; j < bm1.bmWidth * 4;)
  6. {
  7. pBits3[i * bm1.bmWidthBytes + j++] = pBits2[rowOffset * bm2.bmWidthBytes + colOffset + 0];
  8. pBits3[i * bm1.bmWidthBytes + j++] = pBits2[rowOffset * bm2.bmWidthBytes + colOffset + 1];
  9. pBits3[i * bm1.bmWidthBytes + j++] = pBits2[rowOffset * bm2.bmWidthBytes + colOffset + 2];
  10. pBits3[i * bm1.bmWidthBytes + j++] = pBits2[rowOffset * bm2.bmWidthBytes + colOffset + 3];
  11.  
  12. if(j % widthRatio == 0)
  13. colOffset += 4;
  14. }
  15.  
  16. if(i % heightRatio == 0)
  17. rowOffset++;
  18. }
Add Comment
Please, Sign In to add comment