def image_create(cmptparms, cspace):
lst = [ctypes.c_int, ctypes.POINTER(ImageComptParmType), ctypes.c_int]<EOL>OPENJPEG.opj_image_create.argtypes = lst<EOL>OPENJPEG.opj_image_create.restype = ctypes.POINTER(ImageType)<EOL>image = OPENJPEG.opj_image_create(len(cmptparms), cmptparms, cspace)<EOL>return(image)<EOL>
Wrapper for openjpeg library function opj_image_create.