Dela via


CameraCaptureUIPhotoCaptureSettings.CroppedSizeInPixels Property

Definition

The exact size in pixels of 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 size of the captured photo.

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 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.

Applies to