LoadBuffer.htm 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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>LoadBuffer (buffer, filename$)</h1>
  8. <h1>Parameters</h1>
  9. <table>
  10. <tr>
  11. <td>
  12. buffer = system or image buffer <br />
  13. filename$ = string containing full path and filename of image
  14. </td>
  15. </tr>
  16. </table>
  17. <h1>Description</h1>
  18. <table>
  19. <tr>
  20. <td>
  21. There are a hundred and one uses for this command, but probably most often used would be to display a title screen or some other 'one time viewing only' image to the front buffer (as in our example). <br />
  22. <br />
  23. You can also load to an image buffer or back buffer. The image is scaled to match the buffer size. This command returns 1 if the command was successful, 0 if there was an error.
  24. </td>
  25. </tr>
  26. </table>
  27. <h1><a href=../2d_examples/LoadBuffer.bb>Example</a></h1>
  28. <table>
  29. <tr>
  30. <td>
  31. ; LoadBuffer example <br />
  32. <br />
  33. ; Set graphics mode <br />
  34. Graphics 800,600,16 <br />
  35. <br />
  36. ; Load an image directly to the front buffer (your location may be different) <br />
  37. LoadBuffer (FrontBuffer(),"C:Program FilesBlitz Basicsampleslitzanoidgfx itle.bmp") <br />
  38. <br />
  39. ; wait for ESC so user gets to see the screen <br />
  40. While Not KeyHit(1) <br />
  41. Wend <br />
  42. </td>
  43. </tr>
  44. </table>
  45. <br>
  46. <a target=_top href=../index.htm>Index</a><br>
  47. <br>
  48. Click <a href=http://www.blitzbasic.co.nz/b3ddocs/command.php?name=LoadBuffer&ref=comments target=_blank>here</a> to view the latest version of this page online</body>
  49. </html>