---
title: numberOfPlanes
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsbitmapimagerep/numberofplanes
---

# numberOfPlanes

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

## Declaration

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

## Discussion

Discussion If the data has a separate plane for each component—that is, isPlanar is 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

### Related Documentation

- [bitsPerSample](appkit/nsimagerep/bitspersample.md)

### Getting Information About Images

- [bitmapFormat](appkit/nsbitmapimagerep/bitmapformat.md)
- [NSBitmapImageRep.Format](appkit/nsbitmapimagerep/format.md)
- [bitsPerPixel](appkit/nsbitmapimagerep/bitsperpixel.md)
- [bytesPerPlane](appkit/nsbitmapimagerep/bytesperplane.md)
- [bytesPerRow](appkit/nsbitmapimagerep/bytesperrow.md)
- [isPlanar](appkit/nsbitmapimagerep/isplanar.md)
- [samplesPerPixel](appkit/nsbitmapimagerep/samplesperpixel.md)
