在恒定频率上,我想检索 UIImage 以获得某些功能
if (!_updateTimer) {
_updateTimer = [[NSTimer scheduledTimerWithTimeInterval:self.updateFrequency
target:self
selector:@selector(updateLocations:)
userInfo:nil
repeats:YES] retain];
}
在哪里self.updateFrequency = 1 / 20.0;
如何在不单击捕获按钮的情况下每秒不断地检索图像?
以下代码对我没有用,因为它会给出 iphone 320*480 的图像大小
CGImageRef cgoriginal = UIGetScreenImage();
CGImageRef cgimg = CGImageCreateWithImageInRect(cgoriginal, rect);
我需要完整的图像,所有图像都在每个频繁的时间间隔出现在相机前面。
谢谢