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 bits) of the screen. Most screens use 32-bit color.

Example

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

Var cd As Integer = ScreenAt(0).ColorDepth