nanogui: [nanogui] GrCopyArea
Subject:
GrCopyArea
From:
George Goh ####@####.####
Date:
9 Aug 2004 16:17:43 +0100
Message-Id: <1092064649.2634.48.camel@LinuxDev1>
I'm puzzled by the behaviour of GrCopyArea. It doesn't seem to be bound
by the width and height parameters that I give it.
I have created an onscreen window(GrNewWindow) which is 640x480, with a
target area of 300x300. I've also created an offscreen drawing
area(GrNewPixmap) of 300x600. Now when I try to copy using
GrCopyArea(window_onscreen, gc, 100,100,300,300, offscreen_area, 0,0,0),
the area that gets copied is larger than 300x300, in fact, the area of
the screen written is width 300, height until the bottom of the window.
How do I make GrCopyArea only copy the area I want it to, and clip off
any extra that may exist in the source?
Thanks,
George