Instance Method

getCyan(_:magenta:yellow:black:alpha:)

Returns the receiver’s CMYK and opacity values.

Declaration

Parameters

cyan

Upon return, contains the cyan component of the color object.

magenta

Upon return, contains the magenta component of the color object.

yellow

Upon return, contains the yellow component of the color object.

black

Upon return, contains the black component of the color object.

alpha

Upon return, contains opacity value of the color object.

Discussion

If NULL is passed in as an argument, the method doesn’t set that value. This method works only with objects representing colors in the deviceCMYK. Sending it to other objects raises an exception.

See Also

Retrieving Component Values from a Color Object