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

# bitmapData

A pointer to the bitmap data.

```
var bitmapData: UnsafeMutablePointer<UInt8>? { get }
```

## Discussion

For planar data, the value in this property points to the first plane.

## See Also

[`getPixel(_:atX:y:)`](/documentation/AppKit/NSBitmapImageRep/getPixel(_:atX:y:))

Returns by indirection the pixel data for the specified location in the bitmap image representation.



---

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)