Share via


CameraCaptureUIPhotoCaptureSettings.CroppedSizeInPixels Property

Definition

Gets or sets the exact size constraint, in pixels, when cropping the captured photo.

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

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

Property Value

The exact size constraint when cropping the captured photo.

Remarks

You must only specify a value for CroppedSizeInPixels or CroppedAspectRatio. 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