Structure

NSBitmapFormat

Constants representing the various bitmap component formats.

Overview

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

Symbols

Constants

let NSAlphaFirstBitmapFormat: NSBitmapFormat

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.)

let NSAlphaNonpremultipliedBitmapFormat: NSBitmapFormat

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

let NSFloatingPointSamplesBitmapFormat: NSBitmapFormat

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

Relationships

Conforms To