Contents

setFillColorSpace(_:)

Sets the fill color space in a graphics context.

Declaration

func setFillColorSpace(_ space: CGColorSpace)

Parameters

  • space:

    The new fill color space. The color space is retained; upon return, you may safely release it.

Discussion

As a side effect of this function, Core Graphics assigns an appropriate initial value to the fill color, based on the specified color space. To change this value, call setFillColor(_:). Note that the preferred API to use is now setFillColor(_:).

See Also

Setting Fill, Stroke, and Shadow Colors