workingColorSpace
A Core Image context option key to specify the working color space for rendering.
Declaration
static let workingColorSpace: CIContextOptionDiscussion
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
CGColorSpaceinstance with an RGB color model that supports output.An
NSNullinstance to request that Core Image perform no color management.
If this option is not specified, then the default working space is used.