GraphicsDepth.htm 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <html>
  2. <head>
  3. <title>Blitz3D Docs</title>
  4. <link rel=stylesheet href=../css/commands.css type=text/css>
  5. </head>
  6. <body>
  7. <h1>GraphicsDepth()</h1>
  8. <h1>Parameters</h1>
  9. <table>
  10. <tr>
  11. <td>
  12. None
  13. </td>
  14. </tr>
  15. </table>
  16. <h1>Description</h1>
  17. <table>
  18. <tr>
  19. <td>
  20. This command will tell you the color depth of the current graphics mode.
  21. </td>
  22. </tr>
  23. </table>
  24. <h1><a href=../2d_examples/GraphicsDepth.bb>Example</a></h1>
  25. <table>
  26. <tr>
  27. <td>
  28. ; GraphicsWidth(), GraphicsHeight(), GraphicsDepth(), GraphicsBuffer() example <br />
  29. <br />
  30. ; Set a graphics mode and buffer <br />
  31. Graphics 640,480,16 <br />
  32. SetBuffer FrontBuffer() <br />
  33. <br />
  34. ; Print the details <br />
  35. Print "Screen width is: " + GraphicsWidth() <br />
  36. Print "Screen height is: " + GraphicsHeight() <br />
  37. Print "Screen color depth is: " + GraphicsDepth() <br />
  38. Print "Current buffer handle is: " + GraphicsBuffer() <br />
  39. <br />
  40. ; Wait for ESC before exiting <br />
  41. While Not KeyHit(1) <br />
  42. Wend <br />
  43. </td>
  44. </tr>
  45. </table>
  46. <br>
  47. <a target=_top href=../index.htm>Index</a><br>
  48. <br>
  49. Click <a href=http://www.blitzbasic.co.nz/b3ddocs/command.php?name=GraphicsDepth&ref=comments target=_blank>here</a> to view the latest version of this page online</body>
  50. </html>