New

Syntax

Image:New(width, height, return)

Description

Creates an image buffer and loads the image file on the buffer.

Note

This function comes hand in hand with Image:GrabRegion function.

Example

function main() {
  //declare the variable to become the buffer
  Var:Number myImage;
 
  Image:New(150, 100, myImage)
 
  //at this point, we can use myImage
  //in drawing some image buffers
}
www.konsolscript.org
© 2005-2011 KonsolScript Labs | All Rights Reversed | Licensed under GNU GPL | Designed by Mj Mendoza IV
http://www.sourceforge.net