Contents

isOpaque

A Boolean value that indicates whether the image is opaque.

Declaration

var isOpaque: Bool { get set }

Discussion

The value of this property is true if the image should be treated as fully opaque; otherwise, false 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 hasAlpha property to determine if the image has an alpha channel.

See Also

Specifying Information About the Representation