Type Property

colorSpace

The key for a color space.

Declaration

static let colorSpace: CIImageOption

Discussion

For more information on this data type see CGColorSpace. Typically you use this option when you need to load an elevation, mask, normal vector, or RAW sensor data directly from a file without color correcting it. This constant specifies to override Core Image, which, by default, assumes that data is in GenericRGB.

The value you supply for this dictionary key must be a CGColorSpace data type. If a value for this key isn’t supplied, the image’s colorSpace dictionary are populated automatically by calling CGImageSourceCopyPropertiesAtIndex(_:_:_:). To request that Core Image perform no color management, specify the NSNull object as the value for this key. Use this option for images that don’t contain color data (such as elevation maps, normal vector maps, and sampled function tables).

See Also

Image Dictionary Keys

static let properties: CIImageOption

The key for image metadata properties.

static let applyOrientationProperty: CIImageOption

The key for transforming an image according to orientation metadata.

static let textureTarget: CIImageOption

The key for an OpenGL texture target.

Deprecated
static let textureFormat: CIImageOption

The key for an OpenGL texture format.

Deprecated
static let nearestSampling: CIImageOption

The key into the properties dictionary to indicate whether to use nearest-neighbor sampling.

static let auxiliaryDepth: CIImageOption

The key into the properties dictionary indicating whether to return an auxiliary depth image.

static let auxiliaryDisparity: CIImageOption

The key into the properties dictionary indicating whether to return an auxiliary disparity image.

static let auxiliaryPortraitEffectsMatte: CIImageOption

The key into the properties dictionary indicating whether to return auxiliary portrait effects matte.