Contents

bestDepth(colorSpaceName:bitsPerSample:bitsPerPixel:isPlanar:)

Determines the best window depth that most closely matches the given properties.

Declaration

static func bestDepth(colorSpaceName: NSColorSpaceName, bitsPerSample: Int, bitsPerPixel: Int, isPlanar: Bool) -> (NSWindow.Depth, isExactMatch: Bool)

Parameters

  • colorSpaceName:

    The name of a color space to match.

  • bitsPerSample:

    The bits per sample to match.

  • bitsPerPixel:

    The bits per pixel to match.

  • isPlanar:

    A Boolean that indicates whether the window depth is planar.

Return Value

The window depth that most closely matches the properties this function requests.

See Also

Accessing Depth Details