Function

CGBitmapContextGetBitmapInfo

Obtains the bitmap information associated with a bitmap graphics context.

Declaration

CGBitmapInfo CGBitmapContextGetBitmapInfo(CGContextRef context);

Parameters

c

A bitmap graphics context.

Return Value

The bitmap info of the bitmap graphics context or 0 if c is not a bitmap graphics context. See CGImage for a description of the CGBitmapInfo constants that can be returned.

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

Getting Information About Bitmap Contexts

CGBitmapContextGetAlphaInfo

Returns the alpha information associated with the context, which indicates how a bitmap context handles the alpha component.

CGBitmapContextGetBitsPerComponent

Returns the bits per component of a bitmap context.

CGBitmapContextGetBitsPerPixel

Returns the bits per pixel of a bitmap context.

CGBitmapContextGetBytesPerRow

Returns the bytes per row of a bitmap context.

CGBitmapContextGetColorSpace

Returns the color space of a bitmap context.

CGBitmapContextGetData

Returns a pointer to the image data associated with a bitmap context.

CGBitmapContextGetHeight

Returns the height in pixels of a bitmap context.

CGBitmapContextGetWidth

Returns the width in pixels of a bitmap context.

Beta Software

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