Initializer

init(colorSyncProfile:)

Initializes and returns an NSColorSpace object given a ColorSync profile.

Declaration

init?(colorSyncProfile prof: UnsafeMutableRawPointer)

Parameters

prof

The ColorSync profile to use when initializing the NSColorSpace object. This should be an object of opaque type CMProfileRef. See ColorSync Manager for further information on CMProfileRef.

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?(iccProfileData: Data)

Initializes and returns an NSColorSpace object given an ICC profile.