Function

CGBitmapContextGetBytesPerRow

Returns the bytes per row of a bitmap context.

Declaration

size_t CGBitmapContextGetBytesPerRow(CGContextRef context);

Parameters

context

The bitmap context to examine.

Return Value

The number of bytes per row 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.

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.