Returns a new image created by color matching from the specified color space to the context’s working color space.
SDKs
- iOS 10.0+
- macOS 10.12+
- Mac Catalyst 13.0+
- tvOS 10.0+
Framework
- Core Image
Declaration
func matchedToWorkingSpace(from colorSpace: CGColor Space) -> CIImage?
Parameters
colorSpace
The color space to be converted from. This color space must conform to the
CGColor
color space model.Space Model .rgb
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.