Re: QuickTime Animation Rendering
Re: QuickTime Animation Rendering
- Subject: Re: QuickTime Animation Rendering
- From: Kevin Cathey <email@hidden>
- Date: Thu, 27 Aug 2009 20:31:01 -0500
(1) Is there a way for me to create the animations with
CoreAnimation Layers (CALayer and sublayers) and simply tell some
object to write to file? If so, how?
Yes, check out CARenderer. This will require some knowledge of OpenGL
to do it completely correctly. See rendering to a framebuffer:
http://developer.apple.com/documentation/graphicsimaging/Conceptual/OpenGL-MacProgGuide/opengl_offscreen/opengl_offscreen.html#//apple_ref/doc/uid/TP40001987-CH403-SW7
After creating and rendering to the framebuffer using CARenderer, you
can pull out the contents of the frame buffer and create a CGImage
from that. Make sure you get your alpha [pre]multiplication correct.
Kevin
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden