copy pixels from a rect of the screen.

Hi, here i use opengl draw some staffs at rect(5, 5, 480, 320) and i wanna these staff can also be visible in rect(535, 443, 480, 320).
a rect is in (x, y, width, height) format.

is there some way can help me copy the pixels from these rect to dest rect??

try this one:

http://www.openframeworks.cc/documentation?detail=ofImage#ofImage-grabScreen

ben