Function

CGImageGetDecode

Returns the decode array for a bitmap image.

Declaration

const CGFloat * CGImageGetDecode(CGImageRef image);

Parameters

image

The image to examine.

Return Value

The decode array for a bitmap image (or image mask). See the discussion for a description of possible return values.

Discussion

For a bitmap image or image mask, for each color component in the source color space, the decode array contains a pair of values denoting the upper and lower limits of a range. When the image is rendered, a linear transform maps the original component value into a relative number, within the designated range, that is appropriate for the destination color space. If remapping of the image’s color values is not allowed, the returned value will be NULL.

See Also

Getting Information About an Image

CGImageGetAlphaInfo

Returns the alpha channel information for a bitmap image.

CGImageGetBitmapInfo

Returns the bitmap 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.

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.