Enumeration

NSBitmapFormat

Constants representing the various bitmap component formats.

Declaration

typedef enum NSBitmapFormat : NSUInteger {
    ...
} NSBitmapFormat;

Overview

You can combine these values using the C bitwise OR operator and pass them to the initWithBitmapDataPlanes:pixelsWide:pixelsHigh:bitsPerSample:samplesPerPixel:hasAlpha:isPlanar:colorSpaceName:bitmapFormat:bytesPerRow:bitsPerPixel: method as the bitmap format. You can access them later in the bitmapFormat property.

Topics

Constants

NSAlphaFirstBitmapFormat

A format where the alpha value comes first. (If this option is not specified, alpha values are the last component specified, as in CMYKA and RGBA.)

Deprecated
NSAlphaNonpremultipliedBitmapFormat

A format where alpha values are not premultiplied. (If this option is not specified, alpha values are premultiplied.)

Deprecated
NSFloatingPointSamplesBitmapFormat

A format where samples are specified using floating-point numbers. (If this option is not specified, samples are integer values.)

Deprecated
NS16BitLittleEndianBitmapFormat

A 16-bit, little endian format.

Deprecated
NS32BitLittleEndianBitmapFormat

A 32-bit, little endian format.

Deprecated
NS16BitBigEndianBitmapFormat

A 16-bit, big endian format.

Deprecated
NS32BitBigEndianBitmapFormat

A 32-bit, big endian format.

Deprecated

See Also

Getting Information About the Image

bitmapFormat

The format of the bitmap image representation.

bitsPerPixel

The number of bits allocated for each pixel in each plane of data.

bytesPerPlane

The number of bytes in each plane or channel of data.

bytesPerRow

The minimum number of bytes required to specify a scan line in each data plane.

planar

A Boolean value indicating whether the image data is in a planar configuration.

numberOfPlanes

The number of separate planes into which the image data is organized.

samplesPerPixel

The number of components for each pixel.