Contents

colorSpaceName

The name of the color space used by the image data.

Declaration

var colorSpaceName: NSColorSpaceName { get set }

Discussion

By default, an NSImageRep object’s color space name is NSCalibratedRGBColorSpace. Color space names are defined as part of the NSColor class, in NSGraphics.h. The following are valid color space names:

  • NSCalibratedWhiteColorSpace

  • NSCalibratedBlackColorSpace

  • NSCalibratedRGBColorSpace

  • NSDeviceWhiteColorSpace

  • NSDeviceBlackColorSpace

  • NSDeviceRGBColorSpace

  • NSDeviceCMYKColorSpace

  • NSNamedColorSpace

  • NSCustomColorSpace

See Also

Specifying Information About the Representation