The OpenD Programming Language

Image.loadFromMemory

Load an image from a memory location.

  1. bool loadFromMemory(const(ubyte)[] bytes, int flags)
  2. bool loadFromMemory(const(void)[] bytes, int flags)
    struct Image
    nothrow @nogc @safe @trusted
    bool
    loadFromMemory
    (
    const(void)[] bytes
    ,
    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