Dela via


CameraCaptureUIPhotoFormat Enum

Definition

Determines the format for photos captured with CameraCaptureUI.

public enum class CameraCaptureUIPhotoFormat
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class CameraCaptureUIPhotoFormat
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum CameraCaptureUIPhotoFormat
var value = Windows.Media.Capture.CameraCaptureUIPhotoFormat.jpeg
Public Enum CameraCaptureUIPhotoFormat
Inheritance
CameraCaptureUIPhotoFormat
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)
App capabilities
microphone webcam

Fields

Name Value Description
Jpeg 0

JPEG format.

Png 1

PNG format.

JpegXR 2

JPEG-XR format.

Remarks

Set the photo capture format for CameraCaptureUI by setting the CameraCaptureUIPhotoCaptureSettings.Format property to one of the values of this enumeration.

For how-to guidance for using CameraCaptureUI to capture photos and video, see Capture photos and video with Windows built-in camera UI.

Note

You should not specify the webcam or microphone capabilities in your app manifest file if you are using CameraCaptureUI. If you do so, your app will be displayed in the device's camera privacy settings, but even if the user denies camera access to your app, it will not prevent the CameraCaptureUI from capturing media. This is because the Windows built-in camera app is a trusted first-party app that requires the user to initiate photo, audio, and video capture with a button press. Your app may fail Windows Application Certification Kit certification when submitted to the Store if you specify the webcam or microphone capabilities when using CameraCaptureUI.

You must specify the webcam or microphone capabilities in your app manifest file if you are using MediaCapture to capture audio, photos, or video programmatically.

Applies to

See also