load

Wraps IMG_Load which loads an image from a filesystem path into a software dsdl2.Surface

@safe @trusted
static if(bindSDLImage)
load
(
string file
)

Parameters

file string

path to the image file

Return Value

Type: Surface

dsdl2.Surface of the loaded image

Throws

dsdl2.SDLException if failed to load the image

Meta