Function

CGBitmapContextGetHeight

Returns the height in pixels of a bitmap context.

Declaration

size_t CGBitmapContextGetHeight(CGContextRef context);

Parameters

context

The bitmap context to examine.

Return Value

The height in pixels of the specified context, or 0 if the context is not a bitmap context.

See Also

Getting Information About Bitmap Contexts

CGBitmapContextGetBitmapInfo

Obtains the bitmap information associated with a bitmap graphics context.

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.

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