def image_destroy(image):
    """Deallocate any resources associated with an image.

    Wraps the openjp2 library function opj_image_destroy.

    Parameters
    ----------
    image : ImageType pointer
        Image resource to be disposed.
    """
    OPENJP2.opj_image_destroy.argtypes = [ctypes.POINTER(ImageType)]
    OPENJP2.opj_image_destroy.restype = ctypes.c_void_p

    OPENJP2.opj_image_destroy(image)
def image_destroy ( image ) : OPENJP2 . opj_image_destroy . argtypes = [ ctypes . POINTER ( ImageType ) ] OPENJP2 . opj_image_destroy . restype = ctypes . c_void_p OPENJP2 . opj_image_destroy ( image )
Deallocate any resources associated with an image.

    Wraps the openjp2 library function opj_image_destroy.

    Parameters
    ----------
    image : ImageType pointer
        Image resource to be disposed.