将cameraViewTransform应用于UIImagePickerControllerOriginalImage的最佳方法? iPhone SDK
我正在尝试将 cameraViewTransform
从我的 UIImagePickerController
应用到 UIImagePickerControllerOriginalImage
(来自相机的 UIImage
)。我设法做到这一点的唯一方法是在 UIImageView
上打印 UIImage
,然后使用 UIGraphicsBeginImageContext();
截取屏幕截图UIImageView
我有。
问题是,将 UIImagePickerControllerOriginalImage
打印到 UIImageView
,然后缩放和截取屏幕截图需要很长时间来处理,并且还会冻结 iPhone。 (这是因为 UIImage
是全分辨率的,我也希望它保持全分辨率。)
我的问题是......有没有更好的方法来应用 cameraViewTransform
到 UIImagePickerControllerOriginalImage
图像?或者有没有更快的方法在图像视图上打印我的图像?
非常感谢你们的宝贵时间,我真的很感激! :)
I'm trying to apply the cameraViewTransform
from my UIImagePickerController
to the UIImagePickerControllerOriginalImage
(the out coming UIImage
from the camera). The only way I managed to do this is by printing the UIImage
on an UIImageView
and then using UIGraphicsBeginImageContext();
to take a screenshot of the UIImageView
I have.
The thing is, printing the UIImagePickerControllerOriginalImage
to an UIImageView
, and then zooming and taking a screenshot takes a long time to process and also freezes the iPhone. (That's because that UIImage
is in full resolution, and I also want it to stay in full resolution.)
My Question is... is there a better way to apply the cameraViewTransform
to the UIImagePickerControllerOriginalImage
image? Or is there a faster way to print my image on the image view?
Thank you so much guys for your time, I really appreciate it!!! :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论