CGDisplayCreateImage(_:)
Returns an image containing the contents of the specified display.
Declaration
func CGDisplayCreateImage(_ displayID: CGDirectDisplayID) -> CGImage?Parameters
- displayID:
The identifier of the display for which an image is being created.
Return Value
An image containing the contents of the specified display. If the display ID is invalid, the return value is NULL. In Objective-C, you’re responsible for releasing the image created by calling CGImageRelease.
See Also
Functions
CGAcquireDisplayFadeReservation(_:_:)CGAssociateMouseAndMouseCursorPosition(_:)CGBeginDisplayConfiguration(_:)CGCancelDisplayConfiguration(_:)CGCaptureAllDisplays()CGCaptureAllDisplaysWithOptions(_:)CGCompleteDisplayConfiguration(_:_:)CGConfigureDisplayFadeEffect(_:_:_:_:_:_:)CGConfigureDisplayMirrorOfDisplay(_:_:_:)CGConfigureDisplayMode(_:_:_:)CGConfigureDisplayOrigin(_:_:_:_:)CGConfigureDisplayStereoOperation(_:_:_:_:)CGConfigureDisplayWithDisplayMode(_:_:_:_:)CGCursorIsDrawnInFramebuffer()CGCursorIsVisible()