Device-Specific Value

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

Topics

Constants

var NSImageRepMatchesDevice: Int

A constant indicating that the value of certain attributes, such as the number of colors or bits per sample, will change to match the display device.

See Also

Specifying Information About the Representation

var bitsPerSample: Int

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).

var colorSpaceName: NSColorSpaceName

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

var hasAlpha: Bool

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

var isOpaque: Bool

A Boolean value indicating whether the image is opaque.

var pixelsHigh: Int

The height of the image, measured in pixels.

var pixelsWide: Int

The width of the image, measured in pixels.

var layoutDirection: NSImage.LayoutDirection

The layout direction for the image.