Author: zoiba

loadImage()
Loads image from disk and store it in to given image slot. If image slot is omitted, image will be stored in first free slot, in this case it returns automatic assigned image slot. sdlBasic allow 65536 image slots. LoadImage() command accepts following file formats: bmp, gif, iff, jpg, pbm, pcx, png, tga, xpm.
Syntax:
loadImage( filename , slot )
slot = loadImage( filename )
Example:
s = loadimage( "testimage.png" )
pasteicon(0,0,s)
waitkey