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)

Get Cocoa in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.