<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreGraphics",
  "identifier" : "/documentation/CoreGraphics/kCGDisplayStreamSourceRect",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "Core Graphics"
    ],
    "preciseIdentifier" : "c:@kCGDisplayStreamSourceRect"
  },
  "title" : "kCGDisplayStreamSourceRect"
}
-->

# kCGDisplayStreamSourceRect

```
extern CFStringRef const kCGDisplayStreamSourceRect;
```

## Discussion

\discussion This may be used to request a subregion of the display to be provided as the source of the display stream.  Use
CGRectCreateDictionaryRepresentation to convert from a CGRect to the value used here.   Note: The coordinate system for the
source rectangle is specified in display logical coordinates and not in pixels, in order to match the normal convention on
HiDPI displays.

---

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)