<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSImageRep/isOpaque",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSImageRep(py)opaque"
  },
  "title" : "isOpaque"
}
-->

# isOpaque

A Boolean value that indicates whether the image is opaque.

```
var isOpaque: Bool { get set }
```

## Discussion

The value of this property is <doc://com.apple.documentation/documentation/Swift/true> if the image should be treated as fully opaque; otherwise, <doc://com.apple.documentation/documentation/Swift/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`](/documentation/AppKit/NSImageRep/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`](/documentation/AppKit/NSImageRep/hasAlpha) property to determine if the image has an alpha channel.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)