简体   繁体   中英

WP7 (windows phone 7) How to zoom with the 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 ?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM