Share via


CameraCaptureUIPhotoCaptureSettings.CroppedAspectRatio Property

Definition

Gets or sets the aspect ratio constraint when cropping 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 constraint when cropping the captured photo.

Remarks

You must only specify a value for CroppedAspectRatio or CroppedSizeInPixels. Specifying both the size in pixels and the aspect ratio will result in an invalid argument exception. Setting CroppedAspectRatio or CroppedSizeInPixels when AllowCropping is set to false will result in an invalid argument exception.

Applies to