Error getting tags :
error 404Error getting tags :
error 404 screenDepth | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
screenDepth
Basics
Expander triangle
Type
Function
Syntax

the screenDepth

screenDepth()

Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Returns the bit depth of the screen.
Examples

the screenDepth
if the screenDepth > 8 then show image "Photograph"

Additional Comments
Expander triangle

Use the screenDepth function to determine the color capacity of the screen. For example, you might display different images depending on the number of colors available.

Value:

The screenDepth function returns 1, 2, 4, 8, 16, 24, or 32.

Comments:

If the system has more than one monitor, the screenDepth function returns the bit depth of the main screen.

The expression

2 ^ (the screenDepth)

is equal to

the screenColors

The value returned by the screenDepth function is updated only when you start up the application. If you change the screen settings after starting up the application, you must quit and restart to update the screenDepth.

User Comments
Expander triangle