matchedFromWorkingSpace(to:)
Returns a new image created by color matching from the context’s working color space to the specified color space.
Declaration
func matchedFromWorkingSpace(to colorSpace: CGColorSpace) -> CIImage?Parameters
- colorSpace:
The color space to be converted to. 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
applyingFilter(_:parameters:)applyingFilter(_:)transformed(by:)transformed(by:highQualityDownsample:)cropped(to:)oriented(forExifOrientation:)clampedToExtent()clamped(to:)composited(over:)convertingWorkingSpaceToLab()convertingLabToWorkingSpace()matchedToWorkingSpace(from:)premultiplyingAlpha()unpremultiplyingAlpha()settingAlphaOne(in:)