Lingo Dictionary > D-F > depth |  |

depth

Syntax

    imageObject.depth
    member(whichCastMember).depth
    the depth of member whichCastMember

Description

Image object or bitmap cast member property; displays the color depth of the given image object or bitmap cast member.

Depth | Number of Colors
--- | ---
1 | Black and white
2 | 4 colors
4, 8 | 16 or 256 palette-based colors, or gray levels
16 | Thousands of colors
32 | Millions of colors

This property can be tested but not set.

Example

This statement displays the color depth of the image object stored in the variable newImage. The output appears in the Message window.

    put newImage.depth

Example

This statement displays the color depth of the cast member Shrine in the Message window:

    put member("Shrine").depth