CameraCaptureUIPhotoCaptureSettings.CroppedSizeInPixels 属性

定义

所捕获照片的确切大小(以像素为单位)。

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

属性值

捕获的照片的大小。

Windows 要求

应用功能
microphone webcam

注解

移动设备系列中的设备不支持 CameraCaptureUI 中的图像处理剪裁。 应用在这些设备上运行时, 将忽略 CroppedSizeInPixels 属性的值。

如果提供了大小,则用于裁剪照片的用户界面将强制用户将照片裁剪为指定大小。

如果指定的大小大于任何可用分辨率,则捕获的照片将首先缩放到足够大的大小。

设置此属性需要将 MaxResolution 属性设置为 HighestAvailable并将 AllowCropping 属性设置为 True。

适用于