Returns an image containing the contents of the specified display.
- macOS 10.6+
- Mac Catalyst 13.0+Beta
- Core Graphics
The identifier of the display for which an image is being created.
An image containing the contents of the specified display. If the display ID is invalid, the return value is
NULL. The caller is responsible for releasing the image created by calling