---
title: "vImageCreateMonochromeColorSpaceWithWhitePointAndTransferFunction(_:_:_:_:_:)"
framework: accelerate
role: symbol
role_heading: Function
path: "accelerate/vimagecreatemonochromecolorspacewithwhitepointandtransferfunction(_:_:_:_:_:)"
---

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

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

## Declaration

```swift
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 doc://com.apple.accelerate/documentation/Accelerate/kvImagePrintDiagnosticsToConsole, which prints diagnostic information to the console in the event of a failure.
- `error`: A pointer to a doc://com.apple.accelerate/documentation/Accelerate/vImage_Error. The function overwrites the pointer to indicate the success or failure of the operation.

## Return Value

Return Value A CGColorSpace with a reference count of one.

## Discussion

Discussion Use this function to create a CGColorSpace instance to correspond with a specified white point and a transfer function. The 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.

## See Also

### Creating Core Graphics color spaces

- [vImageCreateRGBColorSpaceWithPrimariesAndTransferFunction(_:_:_:_:_:)](accelerate/vimagecreatergbcolorspacewithprimariesandtransferfunction(_:_:_:_:_:).md)
- [vImageRGBPrimaries](accelerate/vimagergbprimaries.md)
- [vImageTransferFunction](accelerate/vimagetransferfunction.md)
- [vImageWhitePoint](accelerate/vimagewhitepoint.md)
