English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
OpixelDepthAtributo de leitura que retorna a profundidade de pixel da tela.
A profundidade de pixel é o número de bits usados pelo hardware de exibição do sistema em cada pixel.
screen.pixelDepth
var x = "Profundidade de pixel: " + screen.pixelDepth;Testar e Verificar‹/›
Todos os navegadores suportam completamente o atributo pixelDepth:
Atributo | |||||
pixelDepth | É | É | É | É | É |
Valor retornado: | Um número que representa a resolução de cor, em cada pixel. Valores possíveis:
|
---|
Este exemplo mostra todas as propriedades da tela:
var txt = ""; txt += "<p>Largura Total: "/height: " + screen.width + "*" + screen.height + "</p>"; txt += "<p>Largura Disponível: "/height: " + screen.availWidth + "*" + screen.availHeight +"</p>"; txt += "<p>Profundidade de Cor: " + screen.colorDepth + "</p>"; txt += "<p>Resolução de Cor: " + screen.pixelDepth + "</p>"; document.write(txt);Testar e Verificar‹/›
Referência: screenAtributo screen.availHeight
Referência: screenAtributo screen.availWidth
Referência: screenAtributo screen.height
Referência: screenAtributo screen.width
Referência: screenAtributo screen.colorDepth