The OpenD Programming Language

Image.loadFromFile

Load an image from a file location.

struct Image
nothrow @nogc @safe @trusted
bool
loadFromFile
(
const(char)[] path
,
int flags = 0
)

Return Value

Type: bool

true if successfull. The image will be in errored state if there is a problem.

See Also

LoadFlags, LayoutConstraints. Tags: none.

Meta