The OpenD Programming Language

Image.disownData

Disown the image allocation data. This return both the pixel _data (same as and the allocation data The data MUST be freed with freeImageData. The image still points into that data, and you must ensure the data lifetime exceeeds the image lifetime. Tags: #valid #own #data Warning: this return the malloc'ed area, NOT the image data itself. However, with the constraints

struct Image
nothrow @nogc @safe pure
ubyte*
disownData
()

Meta