Initializes a Core Image color object with a Core Graphics color.
- iOS 5.0+
- macOS 10.4+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- Core Image
A Core Graphics color value.
The resulting Core Image color.
CGColor object is the fundamental opaque data type used internally by Core Graphics to represent colors. For more information on Core Graphics color and color spaces, see Quartz 2D Programming Guide.
You can pass a
CGColor object that represents any color space, including CMYK, but Core Image converts all color spaces to the Core Image working color space before it passes the color space to the filter kernel. The Core Image working color space uses three color components plus alpha.