2010-06-08 59 views

回答

1

一種方法可以捕捉與CGWindow API(搜索:抓住的兒子)的靜態截圖,並使用addImage它們添加到一個QTMovie對象:forDuration:withAttributes:

相關Apple代碼例如:StillMotion(開發商.apple.com/mac/library/samplecode/StillMotion/Introduction/Intro.html)

+1

另一種方法是完全避開QTKit並使用OpenGL。 Apple在此處有示例代碼:http://developer.apple.com/mac/library/samplecode/OpenGLScreenCapture/Introduction/Intro.html – bjoern 2010-06-09 16:15:32

3

從Lion開始,您可以使用AVFoundation框架。 快速教程可以找到here

相關問題