ResizeImage

Family: Image · One form

What it does

ResizeImage writes to an Image object: it resizes rather than reads. It takes imageID (an integer), width (an integer) and height (an integer), and returns nothing. imageID is the id of an Image object, the one LoadImage returned: it is how the call knows what to act on.

Syntax

ResizeImage(imageID integer, width integer, height integer)

Parameters

NameType
imageIDinteger
widthinteger
heightinteger

Every form returns

nothing

Example · generated

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

LoadImage is there to give the call something to act on; ResizeImage 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