Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (int y = 0; y < rowLength; y+=2)
- {
- for (int x = 0; x < colLength; x++)
- {
- if ((y+1) < rowLength)
- data[y, x + 1] = data[y + 1, x] = data[y + 1, x + 1] = data[y, x++];
- else
- data[y, x + 1] = data[y, x++];
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement