screen.colorDepth

モニタ画面の色数をビット数で返します。ビット数と色数の対応は以下のようになります。

colorDepthの値色数
1白黒
24色
38色
416色
8256色
1665536色
241677万色
321677万色+αチャンネル

構文

screen.colorDepth

例文

<html>
 <head>
  <title>screen.colorDepth</title>
</head>
 <body>
  <script type="text/javascript"><!--
   document.write(screen.colorDepth);
  // --></script>
 </body>
</html>

関連記事

スポンサーリンク

TO_CHAR関数 文字列型に変換する

ホームページ製作・web系アプリ系の製作案件募集中です。

上に戻る