def copy_rect(self, x0, y0, x1, y1, dx, dy, destination):
x0, y0, x1, y1 = self.rect_helper(x0, y0, x1, y1)<EOL>dx, dy = force_int(dx, dy)<EOL>for x in range(x0, x1 + <NUM_LIT:1>):<EOL><INDENT>for y in range(y0, y1 + <NUM_LIT:1>):<EOL><INDENT>d = destination._offset(dx + x - x0, dy + y - y0)<EOL>o = self._offset(x, y)<EOL>destination.canvas[d:d + <NUM_LIT:4>] = self.canvas[o:o + <NUM_LIT:4>]<EOL><DEDENT><DEDENT>
Copy (blit) a rectangle onto another part of the image