Contents

init(name:)

Creates a specified type of Quartz color space.

Declaration

init?(name: CFString)

Parameters

  • name:

    A color space name. See Cgcolorspace for a list of the valid Quartz-defined names.

Return Value

A new generic color space, or NULL if unsuccessful. In Objective-C, you’re responsible for releasing this object by calling CGColorSpaceRelease.

Discussion

You can use this function to create a generic color space. For more information, see Accessing System-Defined Color Spaces.

See Also

Related Documentation

Creating Color Spaces