如何以编程方式放大来自相机的feed? [英] How to programmatically zoom-in the feed from the camera?

查看:195
本文介绍了如何以编程方式放大来自相机的feed?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要能够以编程方式调整相机Feed的缩放级别。

I want to be able to programmatically adjust the zoom level of the camera feed.

我不知道手机相机是否有光学变焦,如果Windows phone 7让程序员控制它(如果有的话)。如果是,请让我知道如何。

I do not know whether cell-phone cameras have optical zoom or not and if Windows phone 7 lets a programmer control it (if it is there). If it does, please let me know how.

如果没有,我想要能够以数字方式放大相机供稿(数码变焦)。指向如何以编程方式这将是巨大的指针。谢谢!

If it doesn't, I want to able to digitally magnify the camera feed (digital zoom). A pointer to how to do this programmatically would be great. Thanks!

推荐答案

Windows Phone 7硬件规格不包括光学变焦。您可以按照 MSDN教程。您可以通过捕获图片AsyncCaptureImage ,它为您提供 WriteableBitmap ,然后您可以使用它进行数字缩放。

The Windows Phone 7 hardware specification does not include optical zoom. You can access the live images from the camera in Silverlight code via a CaptureSource as described in this MSDN tutorial. You can capture images via AsyncCaptureImage, which provides you with a WriteableBitmap which you can then use to zoom digitally.

这篇关于如何以编程方式放大来自相机的feed?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆