All Bundles

Image

Image loading operations

Operations

Init

Initialize by loading support as indicated by the flags

function : public : 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 : public : Load(file:String) ~ Surface
Parameters
NameTypeDescription
fileStringfile path to image

Return
TypeDescription
Surfaceloaded surface

Quit

Uninitialize image library

function : public : Quit() ~ Nil