Skip to content

load_img

overlay.load_img(contents, width, height)

Loads a texture (or an array of textures) from raw image contents (with file header). Supports PNG, JPG, GIF, APNG. Returns a texture ID that can be used with texture, or nil on failure.