$screenb » History » Version 4
Per Amundsen, 02/23/2023 07:31 PM
| 1 | 1 | Per Amundsen | _Added in 1.8.2_ |
|---|---|---|---|
| 2 | |||
| 3 | *$screenb* |
||
| 4 | |||
| 5 | Returns the bit depth of the first screen found. |
||
| 6 | |||
| 7 | ----------------------------------------------------------------------------- |
||
| 8 | |||
| 9 | *$screenb(N)* |
||
| 10 | |||
| 11 | 3 | Per Amundsen | Returns the bit depth of the Nth screen found. |
| 12 | 1 | Per Amundsen | |
| 13 | *Parameters* |
||
| 14 | |||
| 15 | 4 | Per Amundsen | table(ktable). |
| 16 | |*Parameter*|*Description*| |
||
| 17 | | N | If N = 0, the number of screens found, otherwise the Nth screen. | |
||
| 18 | 1 | Per Amundsen | |
| 19 | 2 | Per Amundsen | *Example* |
| 20 | |||
| 21 | 1 | Per Amundsen | <pre> |
| 22 | ; Print number of screens. |
||
| 23 | //echo -ag $screenb(0) |
||
| 24 | |||
| 25 | ; Print the bith depth of the first screen found. |
||
| 26 | //echo -ag $screenb(1) |
||
| 27 | </pre> |