Contents

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