PreviewResolution Property
Collapse the table of content
Expand the table of content

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)

public Size PreviewResolution { get; }

Property Value

Type: System.Windows.Size
The preview resolution.

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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

© 2016 Microsoft