PhotoCaptureDevice.SetPreviewResolutionAsync method
Sets the preview resolution.
Syntax
public IAsyncAction SetPreviewResolutionAsync(
Size value
)
Public Function SetPreviewResolutionAsync(
value As Size
) As IAsyncAction
public:
IAsyncAction^ SetPreviewResolutionAsync(
Size value
)
Parameters
value
Type: SizeThe new preview resolution.
Return value
Type: IAsyncAction
Returns an IAsyncAction object that is used to control the asynchronous operation.
Remarks
When OpenAsync is called, the initial preview resolution is selected automatically and optimized for the resolution of the phone that is running your app. It maintains the same aspect ratio as the initial capture resolution.
Requirements
Minimum supported client |
None supported |
Minimum supported server |
None supported |
Minimum supported phone |
Windows Phone 8 |
Namespace |
Windows.Phone.Media.Capture Windows::Phone::Media::Capture [C++] |
Metadata |
Windows.WinMD |
Capabilities |
ID_CAP_ISV_CAMERA [Windows Phone] |
Attributes
[Deprecated()]
See also
PhotoCaptureDevice