Offscreen Drawing, NSView-Quartz-Mix
Offscreen Drawing, NSView-Quartz-Mix
- Subject: Offscreen Drawing, NSView-Quartz-Mix
- From: Manfred Lippert <email@hidden>
- Date: Mon, 04 Feb 2002 12:47:21 +0100
Hi,
I haven't read much of the documentation about drawing (NSView and Quartz)
and I am not completely familiar with the concepts about the various (?)
drawing contexts, so maybe my questions are somewhere answered inside the
docs or are perhaps trivial. But it is difficult to find specific answers to
my problems when you don't know where so search. So here it comes:
Is it possible to "intermix" NSView, NSGraphicsContext and Quartz drawing?
Is it possible to create an offscreen graphics context (NSGraphicsContext or
Quartz???) and "copy" the contents of an NSView into that offscreen context,
draw some things there offscreen and copy the result back to the NSView?
(All should be done inside the drawRect method of the NSView.)
How can this be done?
It would be great if someone can point me in the right direction.
I'll continue reading in the docs in the meanwhile ... ;-)
Regards,
Mani