TileBlock.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>TileBlock image [,x,y,frame]</h1>
  8. <h1>Parameters</h1>
  9. <table>
  10. <tr>
  11. <td>
  12. image = file handle variable holding the loaded image <br />
  13. x = x coordinate offset(optional) <br />
  14. y = y coordinate offset (optional) <br />
  15. frame = frame of the image to use (optional)
  16. </td>
  17. </tr>
  18. </table>
  19. <h1>Description</h1>
  20. <table>
  21. <tr>
  22. <td>
  23. Similar to TileImage but ignores transparency. Use this to tile an entire or portion of the screen with a single repetative image.
  24. </td>
  25. </tr>
  26. </table>
  27. <h1><a href=../2d_examples/TileBlock.bb>Example</a></h1>
  28. <table>
  29. <tr>
  30. <td>
  31. ; TileBlock example <br />
  32. Graphics 800,600,16 <br />
  33. <br />
  34. ; Load an image to tile (your location might vary) <br />
  35. gfxBall=LoadImage("C:Program FilesBlitz Basicsamplesall.bmp") <br />
  36. <br />
  37. ; Tile the graphic without transparency <br />
  38. TileBlock gfxBall <br />
  39. <br />
  40. ; Wait for ESC to hit <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=TileBlock&ref=comments target=_blank>here</a> to view the latest version of this page online</body>
  50. </html>