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
init(calibratedGrayWhitePoint:blackPoint:gamma:)init(calibratedRGBWhitePoint:blackPoint:gamma:matrix:)init(iccBasedNComponents:range:profile:alternate:)init(indexedBaseSpace:last:colorTable:)init(labWhitePoint:blackPoint:range:)init(patternBaseSpace:)init(platformColorSpaceRef:)init(iccData:)init(propertyListPlist:)CGColorSpaceCreateDeviceRGB()CGColorSpaceCreateDeviceCMYK()CGColorSpaceCreateDeviceGray()init(iccProfileData:)