The OpenD Programming Language

Image.saveToMemory

Saves the image into a new memory location. The returned data must be released with a call to freeEncodedImage.

struct Image
nothrow @nogc @safe const @trusted
ubyte[]
saveToMemory
(,
int flags = 0
)

Return Value

Type: ubyte[]

null if saving failed. Warning: this is NOT GC-allocated, so this allocation will leak unless you call freeEncodedImage after use. Tags: none.

Meta