You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 19, 2025. It is now read-only.
Return Value
An array of intensity values for the color components (including alpha) associated with the specified color. The size of the array is one more than the number of components of the color space for the color.
The size of the return array should not be assumed larger than or equal to 4, or it may lead to heap overflow.
There exists a function named CGColorGetNumberOfComponents, and its doc says:
Return Value
The number of color components (including alpha) associated with the specified color. This number is one more than the number of components of the color space for the color.
The size of the return array depends on the color space, which has different models defined in CGColorSpaceModel, and some model(eg. kCGColorSpaceModelMonochrome) has number of color components less than 4.