screen.colorDepth
モニタ画面の色数をビット数で返します。ビット数と色数の対応は以下のようになります。
colorDepthの値 | 色数 |
---|---|
1 | 白黒 |
2 | 4色 |
3 | 8色 |
4 | 16色 |
8 | 256色 |
16 | 65536色 |
24 | 1677万色 |
32 | 1677万色+αチャンネル |
構文
screen.colorDepth
例文
<html> <head> <title>screen.colorDepth</title> </head> <body> <script type="text/javascript"><!-- document.write(screen.colorDepth); // --></script> </body> </html>
関連記事
- screen.width
- screen.updateInterval
- screen.pixelDepth
- screen.logicalYDPI
- screen.logicalXDPI
- screen.height
- screen.fontSmoothingEnabled
- screen.deviceYDPI
- screen.deviceXDPI
- screen.bufferDepth
- screen.availWidth
- screen.availTop
- screen.availLeft
- screen.availHeight
スポンサーリンク