Camera.PreviewResolution Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets the current resolution of the image provided by the PhotoCameraGetPreviewBuffer methods. This method is for use by the live viewfinder.

Namespace:  Microsoft.Devices
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)

Syntax

Public ReadOnly Property PreviewResolution As Size
public Size PreviewResolution { get; }

Property Value

Type: System.Windows..::.Size
The preview resolution.

Remarks

The camera is capable of capturing images larger than the resolution of the device display. The preview resolution is optimized for the device display and is different than what is captured by the camera. PreviewResolution maintains the same aspect ratio as Resolution.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Platforms

Windows Phone

See Also

Reference

Camera Class

Microsoft.Devices Namespace