O'Reilly logo

Cocoa in a Nutshell by James Duncan Davidson, Michael Beam

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Graphics: Window Depth

These functions are used to obtain information about the bit-depth of windows.

NSAvailableWindowDepths

const NSWindowDepth *NSAvailableWindowDepths(void)

NSBestDepth

NSWindowDepth NSBestDepth(NSString *colorSpace, int bps, int bpp, BOOL planar, BOOL *exactMatch)

NSBitsPerPixelFromDepth

int NSBitsPerPixelFromDepth(NSWindowDepth depth)

NSBitsPerSampleFromDepth

int NSBitsPerSampleFromDepth(NSWindowDepth depth)

NSColorSpaceFromDepth

NSString *NSColorSpaceFromDepth(NSWindowDepth depth)

NSNumberOfColorComponents

int NSNumberOfColorComponents(NSString *colorSpaceName)

NSPlanarFromDepth

BOOL NSPlanarFromDepth(NSWindowDepth depth)

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required