PhotoCaptureDevice class
Captures photos.
Syntax
Public NotInheritable Class PhotoCaptureDevice Implements IDisposable, _ ICameraCaptureDevice
Members
The PhotoCaptureDevice class has these types of members:
Events
The PhotoCaptureDevice class has these events.
| Event | Description |
|---|---|
| PreviewFrameAvailable | Occurs when a preview frame is available. |
| VendorSpecificDataAvailable | Occurs when vendor-specific data is available. |
Methods
The PhotoCaptureDevice class has these methods. It also inherits methods from the Object class.
| Method | Description |
|---|---|
| Close | Releases resources that are associated with the capture device. |
| CreateCaptureSequence | Creates a capture sequence object. |
| FocusAsync | Starts the autofocus, auto white balance, and auto exposure operations, as applicable. |
| GetAvailableCaptureResolutions | Gets the resolutions that are available for photo capture. |
| GetAvailablePreviewResolutions | Gets the resolutions that are available from the camera preview. |
| GetPreviewBufferArgb | Copies the current viewfinder ARGB frame into a buffer for further manipulation. |
| GetPreviewBufferY | Copies the luminance data for the current viewfinder frame into a buffer for further manipulation. |
| GetPreviewBufferYCbCr | Copies the current viewfinder frame into a buffer for further manipulation. |
| GetProperty | Gets the value of a known camera property. |
| GetSupportedPropertyRange | Gets a range of supported values for a known camera property. |
| GetSupportedPropertyValues | Gets a list of supported values for a known camera property. |
| IsFocusRegionSupported | Specifies whether the camera can be auto-focused programmatically. |
| IsFocusSupported | Returns a value indicating whether or not autofocus is supported by the specified camera. |
| OpenAsync | Creates a PhotoCaptureDevice object for capturing still photos. |
| PrepareCaptureSequenceAsync | Prepares the capture sequence for capturing photos. |
| ResetFocusAsync | Returns the lens to the default position or allows continuous autofocus to resume. |
| SetCaptureResolutionAsync | Sets the capture resolution. |
| SetPreviewResolutionAsync | Sets the preview resolution. |
| SetProperty | Sets the value of a known camera property. |
Properties
The PhotoCaptureDevice class has these properties.
| Property | Access type | Description |
|---|---|---|
|
Read-only | Returns the camera locations that are available on the phone. | |
|
Read-only | Gets the capture resolution. | |
|
Read/write | Gets or sets the region in the viewfinder where the camera focuses. | |
|
Read-only | Gets the preview resolution. | |
|
Read-only | Gets the location of the camera on the phone (front or back). | |
|
Read-only | Gets the number of degrees that the camera sensor is rotated relative to the screen. |
Requirements
|
Minimum supported client |
None supported |
|---|---|
|
Minimum supported server |
None supported |
|
Minimum supported phone |
Windows Phone 8 |
|
Namespace |
|
|
Metadata |
|
|
Capabilities |
|
Attributes
- [Deprecated()]
- [MarshalingBehavior(Agile)]
- [Version(0x06020000)]
- [WebHostHidden()]
See also
Show: