<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSImage/prefersColorMatch",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSImage(py)prefersColorMatch"
  },
  "title" : "prefersColorMatch"
}
-->

# prefersColorMatch

A Boolean value that indicates whether the image prefers to choose image representations using color-matching or resolution-matching.

```
var prefersColorMatch: Bool { get set }
```

## Discussion

When the value of this property is <doc://com.apple.documentation/documentation/Swift/true>, the image attempts to match the color capabilities of the rendering device first. When it is <doc://com.apple.documentation/documentation/Swift/false>, the image prefers resolution-matching first. The default value is <doc://com.apple.documentation/documentation/Swift/true>. Both color-matching and resolution-matching may influence the choice of an image representation. You use this method to choose which technique should be used first during the selection process.

---

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)