Instance Property

colorSpaceName

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

Declaration

@property(copy) NSColorSpaceName colorSpaceName;

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

bitsPerSample

The number of bits per sample in the object (if the object is a planar image, this property contains the number of bits per sample per plane).

alpha

A Boolean value indicating whether the image data has an alpha channel.

opaque

A Boolean value indicating whether the image is opaque.

pixelsHigh

The height of the image, measured in pixels.

pixelsWide

The width of the image, measured in pixels.

layoutDirection

The layout direction for the image.

Device-Specific Value

A constant that is used by NSImageRep to denote an attribute whose value changes to match the display device.