Files
BlitzNext/_release/help/commands/2d_commands/GFXModeHeight.htm
T
2014-02-26 16:08:39 +13:00

17 lines
1.8 KiB
HTML

<html><head><title>Command: GFXModeHeight </title><meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'><link rel='stylesheet' href='../css/commands.css' type='text/css'></head><body><span class='Command'>&nbsp;&nbsp;GFXModeHeight (mode)&nbsp;&nbsp;</span></p><span class='header'>Definition:</span> <br><br><table width='100%' border='0' cellspacing='2' cellpadding='2' align='center'><tr><td>Returns the height capability of the selected video mode.</td></tr></table><span class='header'><br>Parameter Description:</span> <br><br><table width='100%' border='0' cellspacing='2' cellpadding='2' align='center'><tr><td>None.</td></tr></table><p class='header'>Command Description: <br><br><table width='100%' border='0' cellspacing='2' cellpadding='2' align='center'><tr><td>Once you determine the video modes available by the video card using <a href='CountGFXModes().htm'>CountGFXModes()</a>, you can iterate through them and determine the width, height, and color depth capabilities of each mode.
Use this command to get the height of the mode. Use the <a href='GFXModeWidth.htm'>GFXModeWidth</a> and <a href='GFXModeDepth.htm'>GFXModeDepth</a> to get the remaining parameters.</td></tr></table><p class='header'>Example: <br><br><table width='100%' border='0' cellspacing='2' cellpadding='2' align='center'><tr><td>; CountGFXModes()/GfxModeWidth/GfxModeHeight/GfxModeDepth example<br>
<br>
intModes=CountGfxModes()<br>
<br>
Print "There are " + intModes + "graphic modes available:"<br>
<br>
; Display all modes including width, height, and color depth<br>
For t = 1 To intModes<br>
Print "Mode " + t + ":<br>
Print "Width=" + GfxModeWidth(t)<br>
Print "Height=" + GfxModeHeight(t)<br>
Print "Height=" + GfxModeDepth(t)<br>
Next<br></td></tr></table><p><b><a target="_top" href="../index.htm">Index</a></b></p></body>
</html>