AdvancedCapturedPhoto.FrameBoundsRelativeToReferencePhoto 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取对 Rect 的引用,该引用表示高级照片捕获操作生成的 帧 的尺寸,相对于传递到 OptionalReferencePhotoCaptured 事件的参考照片。
public:
property IReference<Rect> ^ FrameBoundsRelativeToReferencePhoto { IReference<Rect> ^ get(); };
IReference<Rect> FrameBoundsRelativeToReferencePhoto();
public System.Nullable<Rect> FrameBoundsRelativeToReferencePhoto { get; }
var iReference = advancedCapturedPhoto.frameBoundsRelativeToReferencePhoto;
Public ReadOnly Property FrameBoundsRelativeToReferencePhoto As Nullable(Of Rect)
属性值
对 Rect 的引用,该引用表示捕获的帧相对于参考照片的帧边界。
Windows 要求
设备系列 |
Windows 10 Anniversary Edition (在 10.0.14393.0 中引入)
|
API contract |
Windows.Foundation.UniversalApiContract (在 v3.0 中引入)
|
注解
由于涉及图像处理,使用 AdvancedPhotoCapture 捕获的帧可能小于传递到 OptionalReferencePhotoCaptured 事件的预览照片。 此属性允许裁剪预览帧,使其与已处理帧的尺寸匹配。
注意
并非所有捕获设备都支持为高级照片捕获提供参考照片或确定参考照片的尺寸,因此此属性可能为 null。 在使用此属性的值之前,请务必检查 null 引用。