GridImage
GridImage ImageNumber, Xpos, Ypos, Rows, Columns, SolidFlag
 
Parameters:

    ImageNumber = The identifier of this image
    Xpos = The X coordinate to begin tiling the image at
    Ypos = The Y coordinate to begin tiling the image at
    Rows = The Number of times across to render this image
    Columns = The number of times down to render this image
    SolidFlag = The solid flag toggles if the image is to be rendered solid (no transparent parts) or not
Returns: NONE
 

     Unlike DrawImage which just renders the image once, GridImage will render rows and columns of this image.



FACTS:


     * none



Mini Tutorial:


      This example creates a ball like image, then using grid image it draw this image at the mouses current position.


  
  
; Create an Image of a Circle
  Size=120
  CreateImage 1,Size,Size
  RenderToImage 1
  RenderPhongImage 1,size/2,size/2,$ffffff,size*0.95,1.5
  
; redirect All drawing to the Screen.
  RenderToScreen
  
; Set the program to run at a max of 60 Frames per second
  SetFPS 60
  
; Start a loop
  Do
     
   ; Clear the screen to black
     Cls RGB(30,40,30)
     
   ; Render our image of a circle to the screen repeatably
     GridImage 1,MouseX(),MouseY(),3,3,1
     
     
     Print "GridIMage"
     
     
   ; Display the screen and loop until the users presses the ESC key.
     Sync
  Loop
  
  



 
Related Info: DrawAlphaImage | DrawImage | DrawRotatedImage | DrawSprite | TileImage :
 


(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com