cc [ flag... ] file... –lmlib [ library... ] #include <mlib.h> void mlib_ImageDelete(mlib_image *img);
The mlib_ImageDelete() function deletes the mediaLib image data structure and frees the memory space of the image data only if it is allocated through mlib_ImageCreate(). The data type of the image can be MLIB_BIT, MLIB_BYTE, MLIB_SHORT, MLIB_USHORT, MLIB_INT, MLIB_FLOAT, or MLIB_DOUBLE.
The function takes the following arguments:
Pointer to mediaLib image structure.
None.
See attributes(5) for descriptions of the following attributes:
|
mlib_ImageCreate(3MLIB), mlib_ImageCreateStruct(3MLIB), mlib_ImageCreateSubimage(3MLIB), attributes(5)