---
title: kCGImagePropertyHasAlpha
framework: imageio
role: symbol
role_heading: Global Variable
path: imageio/kcgimagepropertyhasalpha
---

# kCGImagePropertyHasAlpha

A Boolean value that indicates whether the image has an alpha channel.

## Declaration

```swift
let kCGImagePropertyHasAlpha: CFString
```

## Discussion

Discussion The value of this key is a CFBoolean. The value is kCFBooleanTrue when the image contains an alpha channel.

## See Also

### Color Information

- [kCGImagePropertyNamedColorSpace](imageio/kcgimagepropertynamedcolorspace.md)
- [kCGImagePropertyProfileName](imageio/kcgimagepropertyprofilename.md)
- [kCGImagePropertyColorModel](imageio/kcgimagepropertycolormodel.md)
- [kCGImagePropertyColorModelRGB](imageio/kcgimagepropertycolormodelrgb.md)
- [kCGImagePropertyColorModelCMYK](imageio/kcgimagepropertycolormodelcmyk.md)
- [kCGImagePropertyColorModelGray](imageio/kcgimagepropertycolormodelgray.md)
- [kCGImagePropertyColorModelLab](imageio/kcgimagepropertycolormodellab.md)
