Hilfe
GfxModeFormat
Aufruf
Parameter
Rückgabewert
Beschreibung
Zusatzinformation
Beispiel
Siehe auch
wert = GfxModeFormat (modus)
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 Bildschirmmodi. 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
Dies ist ein undokumentierter Befehl. Sollte dieser Befehl wieder offiziell entfernt werden, wären Programme zu allen zukünftigen Updates nicht mehr kompatibel und müssten umgeschrieben werden. Die Anwendung ist daher auf eigenes Risiko.
Beispiel
Zeigt alle Bildschirmmodi an:
anz = CountGfxModes ()
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
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

