Function Summary | |
---|---|
CGColor | CGColorCreate(aColorSpace, components) Creates a new CGColor . |
CGColor | CGColorCreateCopy(aColor) Creates a copy of a color. |
CGColor | CGColorCreateGenericGray(gray, alpha) Creates a gray color object. |
CGColor | CGColorCreateGenericRGB(red, green, blue, alpha) Creates an RGB color. |
CGColor | CGColorCreateGenericCMYK(cyan, magenta, yellow, black, alpha) Creates a CMYK color. |
CGColor | CGColorCreateCopyWithAlpha(aColor, anAlpha) Creates a copy of the color with a specified alpha. |
CGColor | CGColorCreateWithPattern(aColorSpace, aPattern, components) Creates a color using the specified pattern. |
float | CGColorGetAlpha(aColor) Returns the color's alpha component. |
null | CGColorGetColorSpace(aColor) Returns the CGColor 's color space. |
CPNumber | CGColorGetNumberOfComponents(aColor) Returns the number of color components (including alpha) in the specified color. |
CGPatternFIXME | CGColorGetPattern(aColor) Gets the CGColor 's pattern. |
Function Detail |
---|
function CGColorCreate(aColorSpace, components)
CGColor
.aColorSpace
- the CGColorSpace
of the colorcomponents
- the color's intensity values plus alphafunction CGColorCreateCopy(aColor)
CGColor
s
are immutable, so to be efficient, this function will just
return the same object that was passed in.aColor
- the CGColor
to 'copy'function CGColorCreateGenericGray(gray, alpha)
gray
- the value to use for the color intensities (0.0-1.0
)alpha
- the gray's alpha value (0.0-1.0
)function CGColorCreateGenericRGB(red, green, blue, alpha)
red
- the red component (0.0-1.0
)green
- the green component (0.0-1.0
)blue
- the blue component (0.0-1.0
)alpha
- the alpha component (0.0-1.0
)function CGColorCreateGenericCMYK(cyan, magenta, yellow, black, alpha)
cyan
- the cyan component (0.0-1.0
)magenta
- the magenta component (0.0-1.0
)yellow
- the yellow component (0.0-1.0
)black
- the black component (0.0-1.0
)alpha
- the alpha component (0.0-1.0
)function CGColorCreateCopyWithAlpha(aColor, anAlpha)
aColor
- the color object to copyanAlpha
- the new alpha component for the copy (0.0-1.0
)function CGColorCreateWithPattern(aColorSpace, aPattern, components)
aColorSpace
- the CGColorSpace
aPattern
- the pattern imagecomponents
- the color components plus the alpha componentfunction CGColorGetAlpha(aColor)
aColor
- the color0.0-1.0
)function CGColorGetColorSpace(aColor)
CGColor
's color space.aColor
function CGColorGetNumberOfComponents(aColor)
aColor
- the CGColor
function CGColorGetPattern(aColor)
CGColor
's pattern.aColor