imageWidth()

Returns the width of image contained into given image slot. If image slot is empty, it raise error and halt program execution.

Syntax:
variable = imageWidth( slot )

Example:
loadimage("sprites.png",1)
prints( imageWidth( 1 ) )
waitkey

Example:
imageproperties.sdlbas