Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

whooleytoo

macrumors 604
Original poster
Aug 2, 2002
6,607
716
Cork, Ireland.
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.