PhotoCaptureDevice.OpenAsync method
Creates a PhotoCaptureDevice object for capturing still photos.
Syntax
public: static IAsyncOperation<PhotoCaptureDevice>^ OpenAsync( CameraSensorLocation sensor, Size initialResolution )
Parameters
- sensor
-
Type: CameraSensorLocation
The location of the camera on the phone (front or back).
- initialResolution
-
Type: Size
The initial capture resolution.
Return value
Type: IAsyncOperation<PhotoCaptureDevice>
The new PhotoCaptureDevice object.
Remarks
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 |
|
|
Metadata |
|
|
Capabilities |
|
Attributes
- [Deprecated()]
See also