getCyan(_:magenta:yellow:black:alpha:)
Returns the color object’s CMYK and opacity values.
Declaration
func getCyan(_ cyan: UnsafeMutablePointer<CGFloat>?, magenta: UnsafeMutablePointer<CGFloat>?, yellow: UnsafeMutablePointer<CGFloat>?, black: UnsafeMutablePointer<CGFloat>?, alpha: UnsafeMutablePointer<CGFloat>?)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.