Re: Quartz and QuickTime Movies... ?
Re: Quartz and QuickTime Movies... ?
- Subject: Re: Quartz and QuickTime Movies... ?
- From: Daniel Waylonis <email@hidden>
- Date: Tue, 22 Jun 2004 14:12:58 -0700
On Jun 20, 2004, at 10:57 PM, in a great fig-tree growing wrote:
>
Question
>
>
I'd like to try some of that new fangled Quartz drawing in QuickTime
>
movies but I not finding a good example on the apple site... I'm
>
looking for the Cocoa/Quartz equivalent to: [ ... QT Carbon code ... ]
Hi Akira,
I think that you're trying to create a QT movie using the contents of a
GWorld.
You can obtain a CGContextRef for that GWorld using:
QDBeginCGContext(GWorldPtr gw, CGContextRef *outContext);
You can then draw into the context (provided it's non-null) using your
favorite CGContext drawing calls. Once you're finished, you call:
QDEndCGContext(GWorldPtr gw, CGContextRef *inoutContext);
which should flush the CG calls into the GWorldPtr. You should be able
to continue with the GWorldPtr as you described.
The only problem that I can think of is that the CGContextRef usually
requires either a 16 or 32 bits per pixel deep buffer, so you might
consider that if you're having some problems with drawing.
Dan
_________________________________________________
Dan Waylonis email@hidden
Software Engineer
http://www.nekotech.com
nekotech SOFTWARE 650.964.2490 (O)
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.