Function

CGBitmapContextGetColorSpace

Returns the color space of a bitmap context.

Declaration

CGColorSpaceRef CGBitmapContextGetColorSpace(CGContextRef context);

Parameters

context

The bitmap context to examine.

Return Value

The color space of the specified context, or NULL if the context is not a bitmap context. You are responsible for retaining and releasing this object as necessary.

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.

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.