init(patternBaseSpace:)
Creates a pattern color space.
Declaration
init?(patternBaseSpace baseSpace: CGColorSpace?)Parameters
- baseSpace:
For masking patterns, the underlying color space that specifies the colors to be painted through the mask. For color patterns, you should pass
NULL.
Return Value
A new pattern color space, or NULL if unsuccessful. In Objective-C, you’re responsible for releasing this object by calling CGColorSpaceRelease.
Discussion
For information on creating and using patterns, see Quartz 2D Programming Guide and CGPattern. Quartz retains the color space you pass in. Upon return, you may safely release it by calling CGColorSpaceRelease.
See Also
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(name:)init(platformColorSpaceRef:)init(iccData:)init(propertyListPlist:)CGColorSpaceCreateDeviceRGB()CGColorSpaceCreateDeviceCMYK()CGColorSpaceCreateDeviceGray()init(iccProfileData:)