---
title: bitmapInfo
framework: coregraphics
role: symbol
role_heading: Instance Property
path: coregraphics/cgcontext/bitmapinfo
---

# bitmapInfo

Obtains the bitmap information associated with a bitmap graphics context.

## Declaration

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

## Discussion

Discussion The data returned by the function specifies whether the bitmap contains an alpha channel and how the alpha channel is generated, along with whether the components are floating-point or integer.

## See Also

### Managing a Bitmap Graphics Context

- [alphaInfo](coregraphics/cgcontext/alphainfo.md)
- [bitsPerComponent](coregraphics/cgcontext/bitspercomponent.md)
- [bitsPerPixel](coregraphics/cgcontext/bitsperpixel.md)
- [bytesPerRow](coregraphics/cgcontext/bytesperrow.md)
- [colorSpace](coregraphics/cgcontext/colorspace.md)
- [data](coregraphics/cgcontext/data.md)
- [height](coregraphics/cgcontext/height.md)
- [width](coregraphics/cgcontext/width.md)
- [makeImage()](coregraphics/cgcontext/makeimage().md)
