Creates a platform-specific color space.
- iOS 9.0+
- macOS 10.0+
- UIKit for Mac 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
- Core Graphics
A generic pointer to a platform-specific color space. In macOS, pass a
CMProfile—a ColorSync profile. Quartz uses this pointer (and the underlying information) only during the function call.
A new color space. You are responsible for releasing this object by calling
CGColor. If unsuccessful, returns
Colors in a device-dependent color space are not transformed or otherwise modified when displayed on an output device—that is, there is no attempt to maintain the visual appearance of a color. As a consequence, colors in a device color space often appear different when displayed on different output devices. For this reason, device color spaces are not recommended when color preservation is important.