Initializer

init(iccProfileData:)

Initializes and returns an NSColorSpace object given an ICC profile.

Declaration

init?(iccProfileData iccData: Data)

Parameters

iccData

The ICC profile to use when initializing the NSColorSpace object. For information on ICC profiles, see the latest ICC specification at the International Color Consortium website website.

Return Value

The initialized NSColorSpace object or nil if initialization was not successful.

See Also

Initializing a Custom NSColorSpace Object

init?(cgColorSpace: CGColorSpace)

Initializes and returns an NSColorSpace object initialized from a Core Graphics color-space object.

init?(colorSyncProfile: UnsafeMutableRawPointer)

Initializes and returns an NSColorSpace object given a ColorSync profile.