Function

CGImageGetBitmapInfo

Returns the bitmap information for a bitmap image.

Declaration

CGBitmapInfo CGImageGetBitmapInfo(CGImageRef image);

Parameters

image

An image.

Return Value

The bitmap information associated with an image.

Discussion

This function returns a constant that specifies:

  • The type of bitmap data—floating point or integer. You use the constant kCGBitmapFloatComponents 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 kCGBitmapAlphaInfoMask 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

Getting Information About an Image

CGImageGetAlphaInfo

Returns the alpha channel information for a bitmap image.

CGImageGetBitsPerComponent

Returns the number of bits allocated for a single color component of a bitmap image.

CGImageGetBitsPerPixel

Returns the number of bits allocated for a single pixel in a bitmap image.

CGImageGetBytesPerRow

Returns the number of bytes allocated for a single row of a bitmap image.

CGImageGetColorSpace

Return the color space for a bitmap image.

CGImageGetDataProvider

Returns the data provider for a bitmap image.

CGImageGetDecode

Returns the decode array for a bitmap image.

CGImageGetHeight

Returns the height of a bitmap image.

CGImageGetShouldInterpolate

Returns the interpolation setting for a bitmap image.

CGImageGetRenderingIntent

Returns the rendering intent setting for a bitmap image.

CGImageGetWidth

Returns the width of a bitmap image.

CGImageIsMask

Returns whether a bitmap image is an image mask.