b2dLoadIndexedImage

Category: 2D Overlay

Syntax:

b2dLoadIndexedImage:Int(filePath:String)


Parameters

Returns

Int



Summary

Loads a paletted (indexed-colour) PNG so its palette can be cycled/recoloured. Returns an image handle (0 on failure).

View detailed documentation online



Example
img = b2dLoadIndexedImage("Media/waterfall.png")
b2dSetTransparentIndex(img, 0)
b2dCyclePalette(img, 16, 31, 18.0)

BambooBasic © 2026 Michael Denathorn