def blend_rect(self, x0, y0, x1, y1, dx, dy, destination, alpha=<NUM_LIT>):
x0, y0, x1, y1 = self.rect_helper(x0, y0, x1, y1)<EOL>for x in range(x0, x1 + <NUM_LIT:1>):<EOL><INDENT>for y in range(y0, y1 + <NUM_LIT:1>):<EOL><INDENT>o = self._offset(x, y)<EOL>rgba = self.canvas[o:o + <NUM_LIT:4>]<EOL>rgba[<NUM_LIT:3>] = alpha<EOL>destination.point(dx + x - x0, dy + y - y0, rgba)<EOL><DEDENT><DEDENT>
Blend a rectangle onto the image