WP7 (windows Phone 7) 如何使用PhotoCamera进行变焦?
我正在将 PhotoCamera
用于 AR 应用程序,我认为放大/缩小功能会是一个不错的选择。 但我不知道该怎么做。 PhotoCamera
类中没有缩放方法。
有人知道如何做吗?
I'm using the PhotoCamera
for an AR app and I was thinking that a zoom in/out function would be a nice one.
But I can't figure out how to do it. There is no zoom method in the PhotoCamera
Class.
Does anyone have a lead on how to do it ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我试图找出同样的问题。看来,没有办法用 PhotoCamera 类进行任何缩放。
实现缩放的唯一方法是通过裁剪图像并缩放图像来进行数字缩放。实现此目的的一种方法是简单地缩放视频画笔设置的 UI 元素(例如矩形)。如果您正在处理帧,则必须对从相机类获得的预览缓冲区应用相同的裁剪和缩放。
I've trying to figure out the same problem. It seems, that there is no way to do any zooming with PhotoCamera class.
The only way to implement a zoom is digitally zooming by cropping the image and scaling it. One way to do this, is simply to scale the UI element (for example Rectangle) that the videobrush is set to. If you are processing the frames, you have to apply the same cropping and scaling to the preview buffer that you get from the camera class.