CameraCaptureUIPhotoCaptureSettings.CroppedSizeInPixels CameraCaptureUIPhotoCaptureSettings.CroppedSizeInPixels CameraCaptureUIPhotoCaptureSettings.CroppedSizeInPixels CameraCaptureUIPhotoCaptureSettings.CroppedSizeInPixels CameraCaptureUIPhotoCaptureSettings.CroppedSizeInPixels Property

Definition

The exact size in pixels of the captured photo.

public : Size CroppedSizeInPixels { get; set; }
Size CroppedSizeInPixels();

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

Property Value

The size of the captured photo.

Additional features and requirements

Capabilities
webcam microphone

Remarks

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

If size is provided, the user interface for cropping photos will force the user to crop the photo to the specified size.

If a size is specified that is larger than any available resolution, then the captured photo will be scaled to a large enough size first.

Setting this property requires that the MaxResolution property is set to HighestAvailable and the AllowCropping property is set to True.