Screen.ColorDepth

From Xojo Documentation

Read-Only Property (As Integer )
IntegerValue = aScreen.ColorDepth

New in 2019r2

Supported for all project types and targets.

The color depth (in pixels) of the screen in pixels.

Example

This example returns the depth of the user's main screen:

Var cd As Integer = ScreenAt(0).ColorDepth