Function

CGColorSpaceCreateWithName

Creates a specified type of Quartz color space.

Declaration

CGColorSpaceRef CGColorSpaceCreateWithName(CFStringRef name);

Parameters

name

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

Return Value

A new generic color space. You are responsible for releasing this object by calling CGColorSpaceRelease. If unsuccessful, returns NULL.

Discussion

You can use this function to create a generic color space. For more information, see Color Space Names.

See Also

Creating Special Color Spaces

CGColorSpaceCreateIndexed

Creates an indexed color space, consisting of colors specified by a color lookup table.

CGColorSpaceCreatePattern

Creates a pattern color space.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software