<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: 18.2.0 -",
    "macOS: 15.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ScreenCaptureKit",
  "identifier" : "/documentation/ScreenCaptureKit/SCScreenshotManager/captureImage(in:completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "ScreenCaptureKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SCScreenshotManager(cm)captureImageInRect:completionHandler:"
  },
  "title" : "captureImage(in:completionHandler:)"
}
-->

# captureImage(in:completionHandler:)

```
class func captureImage(in rect: CGRect, completionHandler: (@Sendable (CGImage?, (any Error)?) -> Void)? = nil)
```

## Parameters

`rect`

the rect for the region in points on the screen space for the screen shot, this is display agnostic and supports multiple displays

`completionHandler`

is the handler that will deliver the screenshot to the client

## Discussion\abstract captureImageInRect:completionHandler:
\discussion this method returns an image containing the contents of the rectangle in points, specified in display space

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)