start => image

Blit

Syntax

Image:Blit(x, y, source, destination)

Description

Draws an image buffer handled by source to destination.

Note

Screen should have been set to visible using Screen:Show() before using Blit function.

Example

function main() {
  //declare the variable to become the buffer
  Var:Number myheart;
 
  //be sure to create the heart.bmp first
  Image:Load("heart.bmp", myheart)
 
  //draw the heart to screen (the primary image buffer)
  Image:Blit(10, 20, myheart, screen)
}


http://konsolscript.sourceforge.net © 2005-2008 Mj Mendoza IV      
http://www.sourceforge.net