<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.12.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreImage",
  "identifier" : "/documentation/CoreImage/CIImage/matchedFromWorkingSpace(to:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core Image"
    ],
    "preciseIdentifier" : "c:objc(cs)CIImage(im)imageByColorMatchingWorkingSpaceToColorSpace:"
  },
  "title" : "matchedFromWorkingSpace(to:)"
}
-->

# matchedFromWorkingSpace(to:)

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

```
func matchedFromWorkingSpace(to colorSpace: CGColorSpace) -> CIImage?
```

## Parameters

`colorSpace`

The color space to be converted to. This color space must conform to the <doc://com.apple.documentation/documentation/CoreGraphics/CGColorSpaceModel/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.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)