DesktopDepth()

Syntax

Result = DesktopDepth(#Desktop)
Description
Returns the color depth of the specified desktop.

Parameters

#Desktop The index of the desktop. Should be always zero as only one web page is active at once.

Return value

Returns the depth in bits-per-pixel: 1, 2, 4, 8, 15, 16, 24 or 32-bit

Remarks

ExamineDesktops() must be called before using this function to retrieve information about the available desktops.

Example

  ExamineDesktops()
  MessageRequester("Display Information", "Current resolution = "+ DesktopWidth(0) + "x" +  DesktopHeight(0) + "x" + DesktopDepth(0))

See Also

ExamineDesktops(), DesktopFrequency(), DesktopHeight(), DesktopName(), DesktopWidth()

Supported OS

All

Desktop Index - DesktopFrequency() ->