SaveBuffer.htm 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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>SaveBuffer (buffer,filename$)</h1>
  8. <h1>Parameters</h1>
  9. <table>
  10. <tr>
  11. <td>
  12. buffer = The buffer to save; FrontBuffer() or BackBuffer() <br />
  13. filename$ = valid Windows path/filename
  14. </td>
  15. </tr>
  16. </table>
  17. <h1>Description</h1>
  18. <table>
  19. <tr>
  20. <td>
  21. Typically, this is used to take a screen snapshot. This will save the screen buffer you specify to a .bmp file you specify. Remember, use the proper name for the buffer you wish to save; FrontBuffer() for the current visible screen, and BackBuffer() for the back or invisible drawing buffer. The filename must be valid Windows filename syntax.
  22. </td>
  23. </tr>
  24. </table>
  25. <h1><a href=../2d_examples/SaveBuffer.bb>Example</a></h1>
  26. <table>
  27. <tr>
  28. <td>
  29. ; Save the screen when player pushes F10 <br />
  30. <br />
  31. If KeyHit(10) Then <br />
  32. SaveBuffer(FrontBuffer(),"screenshot.bmp") <br />
  33. End If <br />
  34. </td>
  35. </tr>
  36. </table>
  37. <br>
  38. <a target=_top href=../index.htm>Index</a><br>
  39. <br>
  40. Click <a href=http://www.blitzbasic.co.nz/b3ddocs/command.php?name=SaveBuffer&ref=comments target=_blank>here</a> to view the latest version of this page online</body>
  41. </html>