Image loading operations
OperationsInitialize by loading support as indicated by the flags
function : Init(flags:Int) ~ Int
Name | Type | Description |
---|---|---|
flags | Int | OR'd values ImageFlags->IMG_INIT_JPG, ImageFlags->IMG_INIT_PNG and ImageFlags->IMG_INIT_TIF |
Type | Description |
---|---|
Int | status code |
Load image into surface
function : Load(file:String) ~ Surface
Name | Type | Description |
---|---|---|
file | String | file path to image |
Type | Description |
---|---|
Surface | loaded surface |
Uninitialize image library
function : Quit() ~ Nil