1

我们使用UIGetScreenImage每秒捕获 3-6 张图像并将它们保存到磁盘。但是,我们正在寻找一种以更快速度捕获图像的方法。我们注意到一些似乎没有使用的实现UIGetScreenImage(我们知道这一点,因为它们在预览中覆盖了未在图像上捕获的控件)并且它们能够每秒捕获多达 15 个图像并保存到磁盘. 有没有其他方法可以以比 更快的速度捕获和保存图像UIGetScreenImage

4

2 回答 2

1

You can use quartz to render an off screen version of the view being drawn. the exact details escape me at the moment, but I believe you need to grab a different context in your view's draw method, and draw a copy to some place where you would then save it.

This doc may have more info: http://developer.apple.com/mac/library/documentation/GraphicsImaging/Conceptual/drawingwithquartz2d/dq_context/dq_context.html#//apple_ref/doc/uid/TP30001066-CH203-SW9

于 2010-01-15T23:56:02.970 回答
0

您可以尝试使用此处ScreenCaptureView讨论的类。

于 2011-06-17T01:23:20.677 回答