Contents

outputColorSpace

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

Declaration

static let outputColorSpace: CIContextOption

Discussion

This option only affects how Core Image renders using the following methods:

  • /CIContext/createCGImage:fromRect:

  • /CIContext/drawImage:atPoint:fromRect:

  • /CIContext/drawImage:inRect:fromRect:

With all other render methods, the destination color space is either specified as a parameter or can be determined from the object being rendered to.

The value of this option can be either:

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

  • An NSNull instance to indicate that the context should not match from the working space to the destination.

If this option is not specified, then the default output space is sRGB.

See Also

Type Properties