Instance Property

opaque

A Boolean value indicating whether the image is opaque.

Declaration

@property(getter=isOpaque) BOOL opaque;

Discussion

The value of this property is YES if the image should be treated as fully opaque; otherwise, NO to indicate the image may include some transparent regions.

Use this property to test whether an image representation completely covers the area within the rectangle given by the size property.

The property value does not indicate whether the image has an alpha channel or if there is partial or complete transparency when drawing the image rep. Use the alpha property to determine if the image has an alpha channel.

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

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.

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.