共用方式為


AVCaptureMetadataOutput.RectOfInterest 屬性

定義

針對視覺中繼資料,將位置型中繼資料限制為指定的矩形。

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual CoreGraphics.CGRect RectOfInterest { [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)] [Foundation.Export("rectOfInterest", ObjCRuntime.ArgumentSemantic.Copy)] get; [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)] [Foundation.Export("setRectOfInterest:", ObjCRuntime.ArgumentSemantic.Copy)] set; }
member this.RectOfInterest : CoreGraphics.CGRect with get, set

屬性值

從左上方到右下角 [1.0,1.0] 的中繼資料座標系統範圍從 [0,0],

屬性

備註

右下角的中繼資料座標系統從左上方的 [0,0] 到 [1.0,1.0]。

適用於

另請參閱

  • <xref:AVFoundation.AVCaptureOutput.GetMetadataOutputRectOfInterestForRect>
  • <xref:AVFoundation.AVCaptureOutput.GetRectForMetadataOutputRectOfInterest>