This should be obvious, but I can't seem to find any obvious way of doing this..
How do you copy part (say, a rectangular section) of a context and draw it to another? I'm scrolling images to the right and wrapping them around to the left hand side, so I need to draw partial images as it's scrolling off.
I guess the other way to do it is to use a cliprect and draw the item twice (i.e. on both sides), but I'd be astonished if there's no way to 'blit' part of one context to another.
How do you copy part (say, a rectangular section) of a context and draw it to another? I'm scrolling images to the right and wrapping them around to the left hand side, so I need to draw partial images as it's scrolling off.
I guess the other way to do it is to use a cliprect and draw the item twice (i.e. on both sides), but I'd be astonished if there's no way to 'blit' part of one context to another.