Contents

NSColorSpace

An object that represents a custom color space.

Declaration

class NSColorSpace

Overview

You can make custom color spaces from ColorSync profiles or from ICC profiles. NSColorSpace also has factory methods that return objects representing the system color spaces.

You can use the init(colorSpace:components:count:) method of the NSColor class to create color objects using custom NSColorSpace objects. You can also send the usingColorSpace(_:) message to an NSColor object to convert it between two color spaces, either of which may be a custom color space.

Topics

Getting a Named Color Space

Getting the Color Spaces Available On the System

Initializing a Custom Color Space Object

Accessing Color Space Data and Attributes

Initializers

See Also

Colors