ScaleTBlit

Syntax

Image:ScaleTBlit(x, y, width, height, src_img_handler, dest_img_handler)

Description

Draws a scaled image buffer handled by source (with transparency) to destination.

Note

Useful for zooming-in-and-out effects.

Example

function main() {
  Screen:Show()
 
  //be sure to create the myPic.bmp first
  Image:Load("myPic.bmp",nImg)
 
  while(B1 EQ false) {
    Image:ScaleTBlit(0,0,320,240,nImg,screen) //this line will 'most likely' cover screen
 
    Screen:Render()
  }
}
www.konsolscript.org
© 2005-2011 KonsolScript Labs | All Rights Reversed | Licensed under GNU GPL | Designed by Mj Mendoza IV
http://www.sourceforge.net