Contents

matchedToWorkingSpace(from:)

Returns a new image created by color matching from the specified color space to the context’s working color space.

Declaration

func matchedToWorkingSpace(from colorSpace: CGColorSpace) -> CIImage?

Parameters

  • colorSpace:

    The color space to be converted from. This color space must conform to the Rgb color space model.

Return Value

An image object representing the result of the color matching operation, or nil if the color spaces to be converted are not compatible.

See Also

Creating an Image by Modifying an Existing Image