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

# bitmapInfo

Returns the bitmap information for a bitmap image.

## Declaration

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

## Discussion

Discussion This function returns a constant that specifies: The type of bitmap data—floating point or integer. You use the constant 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 to extract the alpha information. Alpha information is specified as one of the constants listed in CGImageAlphaInfo. You can extract the alpha information

## See Also

### Examining an image

- [isMask](coregraphics/cgimage/ismask.md)
- [width](coregraphics/cgimage/width.md)
- [height](coregraphics/cgimage/height.md)
- [bitsPerComponent](coregraphics/cgimage/bitspercomponent.md)
- [bitsPerPixel](coregraphics/cgimage/bitsperpixel.md)
- [bytesPerRow](coregraphics/cgimage/bytesperrow.md)
- [colorSpace](coregraphics/cgimage/colorspace.md)
- [alphaInfo](coregraphics/cgimage/alphainfo.md)
- [CGImageAlphaInfo](coregraphics/cgimagealphainfo.md)
- [dataProvider](coregraphics/cgimage/dataprovider.md)
- [decode](coregraphics/cgimage/decode.md)
- [shouldInterpolate](coregraphics/cgimage/shouldinterpolate.md)
- [renderingIntent](coregraphics/cgimage/renderingintent.md)
- [CGBitmapInfo](coregraphics/cgbitmapinfo.md)
- [utType](coregraphics/cgimage/uttype.md)
