vImageCreateMonochromeColorSpaceWithWhitePointAndTransferFunction(_:_:_:_:_:)
Creates a monochrome color space based on primitives from Y’CbCr specifications.
Declaration
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, which prints diagnostic information to the console in the event of a failure.
- error:
A pointer to a Vimage_error. The function overwrites the pointer to indicate the success or failure of the operation.
Return Value
A CGColorSpace with a reference count of one.
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.