【发布时间】:2012-05-04 15:17:22
【问题描述】:
我正在构建一个相机效果应用程序,并希望能够将地理标记添加到我捕获的屏幕截图中。
我正在从 AVCaptureSession 帧缓冲区中获取相机图像,并在经过一些处理后将它们显示给用户。最终结果是 PNG 屏幕截图。如何获取 CLLocation 对象并将其添加到 PNG 图像中?
- (void)captureOutput:(AVCaptureOutput *)captureOutput didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer fromConnection:(AVCaptureConnection *)connection
{
//how to add geotagging to this method?
[self performImageCaptureFrom:sampleBuffer];
}
谢谢!
【问题讨论】:
标签: iphone ios uiimage cllocation geotagging