This type represents the depth, or amount of memory, devoted to a single pixel in a window or screen. A depth of 0 indicates default depth. Window depths should not be made persistent as they will not be the same across systems.
- macOS 10.6+
Use the functions
is to extract info from an
NSWindow value. Use
NSBest to compute window depths.
NSBest tries to accommodate all the parameters (match or better); if there are multiple matches, it gives the closest, with matching color space first, then bps, then planar, then
bpp is “bits per pixel”; 0 indicates default (same as the number of bits per plane, either
number); other values maybe used as hints to provide backing stores of different configuration: for instance, 8-bit color.
You can also use one of the explicit bit depths defined in Explicit Window Depth Limits for the