Contents

CGDisplayCopyColorSpace(_:)

Returns the color space for a display.

Declaration

func CGDisplayCopyColorSpace(_ display: CGDirectDisplayID) -> CGColorSpace

Parameters

  • display:

    The identifier of the display whose color space you want to obtain.

Return Value

The current color space for the specified display. In Objective-C, you’re responsible for releasing the color space with the CGColorSpaceRelease function.

Discussion

This function returns a display-dependent ICC-based color space. You can use this function when rendering content for a specific display in order to produce color-matched output for that display.

See Also

Functions