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.