CameraCaptureUIPhotoCaptureSettings.CroppedAspectRatio Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.