Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for(int i = 0; i < bm1.bmHeight; i++)
- {
- colOffset = 0;
- for(int j = 0; j < bm1.bmWidth * 4;)
- {
- pBits3[i * bm1.bmWidthBytes + j++] = pBits2[rowOffset * bm2.bmWidthBytes + colOffset + 0];
- pBits3[i * bm1.bmWidthBytes + j++] = pBits2[rowOffset * bm2.bmWidthBytes + colOffset + 1];
- pBits3[i * bm1.bmWidthBytes + j++] = pBits2[rowOffset * bm2.bmWidthBytes + colOffset + 2];
- pBits3[i * bm1.bmWidthBytes + j++] = pBits2[rowOffset * bm2.bmWidthBytes + colOffset + 3];
- if(j % widthRatio == 0)
- colOffset += 4;
- }
- if(i % heightRatio == 0)
- rowOffset++;
- }
Add Comment
Please, Sign In to add comment