<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 8.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/vImageCreateMonochromeColorSpaceWithWhitePointAndTransferFunction(_:_:_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "c:@F@vImageCreateMonochromeColorSpaceWithWhitePointAndTransferFunction"
  },
  "title" : "vImageCreateMonochromeColorSpaceWithWhitePointAndTransferFunction(_:_:_:_:_:)"
}
-->

# vImageCreateMonochromeColorSpaceWithWhitePointAndTransferFunction(_:_:_:_:_:)

Creates a monochrome color space based on primitives from Y’CbCr specifications.

```
func vImageCreateMonochromeColorSpaceWithWhitePointAndTransferFunction(_ whitePoint: UnsafePointer<vImageWhitePoint>, _ tf: UnsafePointer<vImageTransferFunction>, _ intent: CGColorRenderingIntent, _ flags: vImage_Flags, _ error: UnsafeMutablePointer<vImage_Error>!) -> Unmanaged<CGColorSpace>!
```

## Parameters

`whitePoint`

Values that define the white point.

`tf`

The transfer function.

`intent`

A rendering intent constant that specifies how to handle colors that aren’t within the gamut of the destination color space.

`flags`

The options to use when performing the operation. This function supports only [`kvImagePrintDiagnosticsToConsole`](/documentation/Accelerate/kvImagePrintDiagnosticsToConsole), which prints diagnostic information to the console in the event of a failure.

`error`

A pointer to a [`vImage_Error`](/documentation/Accelerate/vImage_Error). The function overwrites the pointer to indicate the success or failure of the operation.

## Return Value

A <doc://com.apple.documentation/documentation/CoreGraphics/CGColorSpace> with a reference count of one.

## Discussion

Use this function to create a <doc://com.apple.documentation/documentation/CoreGraphics/CGColorSpace> instance to correspond with a specified white point and a transfer function. The <doc://com.apple.documentation/documentation/CoreGraphics/CGColorSpace> instance defines a monochrome color space. (A Y’CbCr color space is an RGB color space and a conversion matrix from RGB to Y’CbCr.) The white point provides the extent of a color space in XYZ space, and the transfer function provides the transformation from linear color to nonlinear color that the pixels reside in.

---

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)