Instance Property

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

Declaration

@property NSInteger bitsPerSample;

Discussion

The number of bits used to specify each component of data in a single pixel (for example, a value of 8 for an RGBA image means that each pixel is comprised of four 8-bit values) or NSImageRepMatchesDevice.

A subclass can set this property when loading image data to notify the parent class of how many bits each sample uses. Specifying a value that differs from the actual image data does not change the bit depth of the image.

See Also

Specifying Information About the Representation

colorSpaceName

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

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.