<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.4.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreGraphics",
  "identifier" : "/documentation/CoreGraphics/CGImage/bitmapInfo",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Core Graphics",
      "CoreGraphics"
    ],
    "preciseIdentifier" : "c:@F@CGImageGetBitmapInfo"
  },
  "title" : "bitmapInfo"
}
-->

# bitmapInfo

Returns the bitmap information for a bitmap image.

```
var bitmapInfo: CGBitmapInfo { get }
```

## Discussion

This function returns a constant that specifies:

- The type of bitmap data—floating point or integer. You use the constant [`floatComponents`](/documentation/CoreGraphics/CGBitmapInfo/floatComponents) to extract this information.
- Whether an alpha channel is in the data, and if so, how the alpha data is stored. You use the constant [`alphaInfoMask`](/documentation/CoreGraphics/CGBitmapInfo/alphaInfoMask) to extract the alpha information. Alpha information is specified as one of the constants listed in [`CGImageAlphaInfo`](/documentation/CoreGraphics/CGImageAlphaInfo).

You can extract the alpha information

---

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)