Udostępnij za pośrednictwem


CameraCaptureUIPhotoCaptureSettings.CroppedAspectRatio Property

Definition

The aspect ratio of the captured photo.

public:
 property Size CroppedAspectRatio { Size get(); void set(Size value); };
Size CroppedAspectRatio();

void CroppedAspectRatio(Size value);
public Size CroppedAspectRatio { get; set; }
var size = cameraCaptureUIPhotoCaptureSettings.croppedAspectRatio;
cameraCaptureUIPhotoCaptureSettings.croppedAspectRatio = size;
Public Property CroppedAspectRatio As Size

Property Value

The aspect ratio of the captured photo. If zero, the aspect ratio is not enforced.

Windows requirements

App capabilities
microphone webcam

Remarks

Imaging cropping in the CameraCaptureUI is not supported for devices in the Mobile device family. The value of the CroppedAspectRatio property is ignored when your app is running on these devices.

If a non-zero value is provided, the user interface will force the user to crop the photo to the specified aspect ratio.

Applies to