Contents

workingColorSpace

A Core Image context option key to specify the working color space for rendering.

Declaration

static let workingColorSpace: CIContextOption

Discussion

Contexts support automatic color management by performing all processing operations in a working color space. This means that unless told otherwise:

  • All input images are color matched from the input’s color space to the working space.

  • All renders are color matched from the working space to the destination’s color space.

The default working space is the extended sRGB color space with linear gamma. On macOS before 10.10, the default is extended Generic RGB with linear gamma.

The value of this option can be either:

  • A CGColorSpace instance with an RGB color model that supports output.

  • An NSNull instance to request that Core Image perform no color management.

If this option is not specified, then the default working space is used.

See Also

Type Properties