ImageSubImages

Family: Image · One form

What it does

ImageSubImages sets SubImages on a Image object. It takes iImageIndex (an integer) and sSubImageFile (a string), and returns nothing. iImageIndex is the id of an Image object, the one LoadImage returned: it is how the call knows what to act on.

Syntax

ImageSubImages(iImageIndex integer, sSubImageFile string)

Parameters

NameType
iImageIndexinteger
sSubImageFilestring

Every form returns

nothing

Example · generated

image = LoadImage("assets/sprite.png", 1)ImageSubImages(image, "assets/sprite.png")DO  Sync()LOOP

LoadImage is there to give the call something to act on; ImageSubImages is the line that matters. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.

35 commands in Image