screen.pixelDepth
仮想画面(内部画面/オフスクリーン)の色数をビット数で返します。ビット数と色数の対応は以下のようになります。このプロパティはSafari、Netscape、Mozilla、Firefox、Opera、iCabが対応しています。
colorDepthの値 | 色数 |
---|---|
1 | 白黒 |
2 | 4色 |
3 | 8色 |
4 | 16色 |
8 | 256色 |
16 | 65536色 |
24 | 1677万色 |
32 | 1677万色+αチャンネル |
構文
screen.pixelDepth
例文
<html> <head> <title>screen.pixelDepth</title> </head> <body> <script type="text/javascript"><!-- document.write(screen.pixelDepth); // --></script> </body> </html>
関連記事
- screen.width
- screen.updateInterval
- screen.logicalYDPI
- screen.logicalXDPI
- screen.height
- screen.fontSmoothingEnabled
- screen.deviceYDPI
- screen.deviceXDPI
- screen.colorDepth
- screen.bufferDepth
- screen.availWidth
- screen.availTop
- screen.availLeft
- screen.availHeight
スポンサーリンク