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

# numberOfPlanes

The number of separate planes into which the image data is organized.

```
var numberOfPlanes: Int { get }
```

## Discussion

If the data has a separate plane for each component—that is, [`isPlanar`](/documentation/AppKit/NSBitmapImageRep/isPlanar) is <doc://com.apple.documentation/documentation/Swift/true>—the value of this property is the number of samples per pixel. If the data is meshed, the value of this property is `1`.

## See Also

[`bitsPerSample`](/documentation/AppKit/NSImageRep/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).



---

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)