Hilfe
Parameter
modus |
Bildschirmmodus (ab 1). Die maximale Anzahl der Bildschirmmodi kann mit CountGfxModes![]() |
Rückgabewert
1 = 16 Bit RGB (5 Bit R, 6 Bit G, 5 Bit B)
2 = 16 Bit RGB (5 Bit R, 5 Bit G, 5 Bit B, 1 Bit ungenutzt)
3 = 24 Bit RGB (8 Bit R, 8 Bit G, 8 Bit B)
4 = 32 Bit RGB (8 Bit R, 8 Bit G, 8 Bit B, 8 Bit ungenutzt)
Beschreibung
Diese Funktion ermittelt die Farbtiefe eines Bildschirmmodus. Ein PC unterstützt eine Vielzahl an Auflösungen. Mit CountGfxModes wird die Anzahl der möglichen Auflösungen ermittelt.
Anders als GfxModeDepth gibt diese Funktion die Farbtiefe als Codenummer zurück (nützlich für Pixelbefehle).
Zusatzinformation
Beispiel
Zeigt alle Bildschirmmodi an:
Print "Anzahl der Bildschirmmodi: "+anz
For i = 1 To anz
txt$="["+Str$(i)+"] "
txt$=txt$+Str$(GfxModeWidth(i)) +"x"
txt$=txt$+Str$(GfxModeHeight (i)) +"x"
txt$=txt$+Str$(GfxModeDepth (i)) +" ("
txt$=txt$+Str$(GfxModeFormat (i)) +")"
Print txt$
Next
WaitKey
Siehe auch

