Reputation: 43349
Is there any way to change the Camera Preview Buffer Resolution? I can change the normal camera Resolution
but I'm not able to figure out a way for changing the PreviewResolution
I can get the PreviewResolution
width and height by using :
PhotoCamera photoCamera = new PhotoCamera();
int width = photoCamera.PreviewResolution.Width;
int height = photoCamera.PreviewResolution.Height;
But I need to set PreviewResolution
and I'm using Windows Phone 7.1 SDK.
Upvotes: 2
Views: 660
Reputation: 2216
I'm not sure you can change the PreviewResolution. I have only ever seen it as 640x 480.
If you are using it as a source for the VideoBrush, it should scale (or shrink) to fill the size of the grid you are using it as a background for. In your XAML definition you can also play with the Stretch (possible values of "Uniform", "Fill", "UniformToFill" and "None").
Upvotes: 1