Contents

CVImageBufferGetColorSpace(_:)

Returns the color space of a Core Video image buffer.

Declaration

func CVImageBufferGetColorSpace(_ imageBuffer: CVImageBuffer) -> Unmanaged<CGColorSpace>?

Parameters

  • imageBuffer:

    The image buffer containing the color space to retrieve.

Return Value

The color space of the image buffer, or nil if you pass a value for the image buffer that isn’t a CVImageBuffer type.

See Also

Inspecting image buffers