Enumeration

CGBitmapInfo

Component information for a bitmap image.

Declaration

typedef enum CGBitmapInfo : uint32_t {
    ...
} CGBitmapInfo;

Overview

Applications that store pixel data in memory using ARGB format must take care in how they read data. If the code is not written correctly, it’s possible to misread the data which leads to colors or alpha that appear wrong. The byte order constants specify the byte ordering of pixel formats. To specify byte ordering, use a bitwise OR operator to combine the appropriate constant with the bitmapInfo parameter.

Topics

Constants

kCGBitmapAlphaInfoMask

The alpha information mask. Use this to extract alpha information that specifies whether a bitmap contains an alpha channel and how the alpha channel is generated.

kCGBitmapFloatComponents

The components of a bitmap are floating-point values.

kCGBitmapByteOrderMask

The byte ordering of pixel formats.

kCGBitmapByteOrderDefault

The default byte order.

kCGBitmapByteOrder16Little

16-bit, little endian format.

kCGBitmapByteOrder32Little

32-bit, little endian format.

kCGBitmapByteOrder16Big

16-bit, big endian format.

kCGBitmapByteOrder32Big

32-bit, big endian format.

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