def image_tile_create(comptparms, clrspc):
    """Creates a new image structure.

    Wraps the openjp2 library function opj_image_tile_create.

    Parameters
    ----------
    cmptparms : comptparms_t
        The component parameters.
    clrspc : int
        Specifies the color space.

    Returns
    -------
    image : ImageType
        Reference to ImageType instance.
    """
    ARGTYPES = [ctypes.c_uint32,
                ctypes.POINTER(ImageComptParmType),
                COLOR_SPACE_TYPE]
    OPENJP2.opj_image_tile_create.argtypes = ARGTYPES
    OPENJP2.opj_image_tile_create.restype = ctypes.POINTER(ImageType)

    image = OPENJP2.opj_image_tile_create(len(comptparms),
                                          comptparms,
                                          clrspc)
    return image
def image_tile_create ( comptparms , clrspc ) : ARGTYPES = [ ctypes . c_uint32 , ctypes . POINTER ( ImageComptParmType ) , COLOR_SPACE_TYPE ] OPENJP2 . opj_image_tile_create . argtypes = ARGTYPES OPENJP2 . opj_image_tile_create . restype = ctypes . POINTER ( ImageType ) image = OPENJP2 . opj_image_tile_create ( len ( comptparms ) , comptparms , clrspc ) return image
Creates a new image structure.

    Wraps the openjp2 library function opj_image_tile_create.

    Parameters
    ----------
    cmptparms : comptparms_t
        The component parameters.
    clrspc : int
        Specifies the color space.

    Returns
    -------
    image : ImageType
        Reference to ImageType instance.