Obtains the bitmap information associated with a bitmap graphics context.
- iOS 2.0+
- macOS 10.4+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
A bitmap graphics context.
The bitmap info of the bitmap graphics context or
c is not a bitmap graphics context. See CGImage for a description of the
CGBitmapInfo constants that can be returned.
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.
Managing a Bitmap Graphics Context
var alphaInfo: CGImageAlphaInfo
Returns the alpha information associated with the context, which indicates how a bitmap context handles the alpha component.
This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.Learn more about using Apple's beta software