Udostępnij za pośrednictwem


CameraCaptureUIPhotoCaptureSettings Class

Definition

Provides settings for capturing photos with CameraCaptureUI. The settings include aspect ratio, image size, format, resolution, and whether or not cropping is allowed by the user interface (UI).

public ref class CameraCaptureUIPhotoCaptureSettings sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class CameraCaptureUIPhotoCaptureSettings final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class CameraCaptureUIPhotoCaptureSettings
Public NotInheritable Class CameraCaptureUIPhotoCaptureSettings
Inheritance
Object Platform::Object IInspectable CameraCaptureUIPhotoCaptureSettings
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

Remarks

To get an instance of this object, retrieve the PhotoSettings property.

Properties

AllowCropping

Determines whether photo cropping will be enabled in the user interface for capture a photo.

CroppedAspectRatio

The aspect ratio of the captured photo.

CroppedSizeInPixels

The exact size in pixels of the captured photo.

Format

Determines the format that captured photos will be stored in.

MaxResolution

Determines the maximum resolution the user will be able to select.

Applies to