• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Quartz and QuickTime Movies... ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Quartz and QuickTime Movies... ?
      • From: in a great fig-tree growing <email@hidden>
References: 
 >Quartz and QuickTime Movies... ? (From: in a great fig-tree growing <email@hidden>)

  • Prev by Date: RE: kCFPreferencesAnyUser w/PreferencePane not working?
  • Next by Date: Re: TIFF Error?
  • Previous by thread: Quartz and QuickTime Movies... ?
  • Next by thread: Re: Quartz and QuickTime Movies... ?
  • Index(es):
    • Date
    • Thread