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 ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.