SCScreenshotManager.CaptureImage Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| CaptureImage(CGRect, SCScreenshotManagerCaptureImageCallback) | |
| CaptureImage(SCContentFilter, SCStreamConfiguration, Action<CGImage,NSError>) |
CaptureImage(CGRect, SCScreenshotManagerCaptureImageCallback)
[Foundation.Export("captureImageInRect:completionHandler:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static void CaptureImage(CoreGraphics.CGRect rect, ScreenCaptureKit.SCScreenshotManagerCaptureImageCallback? completionHandler);
[<Foundation.Export("captureImageInRect:completionHandler:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member CaptureImage : CoreGraphics.CGRect * ScreenCaptureKit.SCScreenshotManagerCaptureImageCallback -> unit
Parameters
- rect
- CGRect
- completionHandler
- SCScreenshotManagerCaptureImageCallback
- Attributes
Applies to
CaptureImage(SCContentFilter, SCStreamConfiguration, Action<CGImage,NSError>)
[Foundation.Export("captureImageWithFilter:configuration:completionHandler:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static void CaptureImage(ScreenCaptureKit.SCContentFilter contentFilter, ScreenCaptureKit.SCStreamConfiguration config, Action<CoreGraphics.CGImage,Foundation.NSError>? completionHandler);
[<Foundation.Export("captureImageWithFilter:configuration:completionHandler:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member CaptureImage : ScreenCaptureKit.SCContentFilter * ScreenCaptureKit.SCStreamConfiguration * Action<CoreGraphics.CGImage, Foundation.NSError> -> unit
Parameters
- contentFilter
- SCContentFilter
- config
- SCStreamConfiguration
- Attributes