SetWidth

Syntax

Image:SetHeight(new_width, img_handler)

Description

Sets the height of the image buffer.

Note

Bliting a resized image is faster than scale-bliting.

Example

function main() {
  //declare the variable to become the buffer
  Var:Number mysky;
 
  Image:New(30, 30 myImage)
 
  //be sure to create the sky.bmp first
  Image:Load("sky.bmp", mysky)
 
  //grab a portion
  Image:SetWidth(100, mysky)
}
www.konsolscript.org
© 2005-2011 KonsolScript Labs | All Rights Reversed | Licensed under GNU GPL | Designed by Mj Mendoza IV
http://www.sourceforge.net