v2025.6.2
All Bundles

Image

Image loading operations

Operations

Init

Initialize by loading support as indicated by the flags

function : Init(flags:Int) ~ Int

Parameters

NameTypeDescription
flagsIntOR'd values ImageFlags->IMG_INIT_JPG, ImageFlags->IMG_INIT_PNG and ImageFlags->IMG_INIT_TIF

Return

TypeDescription
Intstatus code

Load

Load image into surface

function : Load(file:String) ~ Surface

Parameters

NameTypeDescription
fileStringfile path to image

Return

TypeDescription
Surfaceloaded surface

Quit

Uninitialize image library

function : Quit() ~ Nil