heif_image_create

Function heif_image_create 

Source
pub unsafe extern "C" fn heif_image_create(
    width: c_int,
    height: c_int,
    colorspace: heif_colorspace,
    chroma: heif_chroma,
    out_image: *mut *mut heif_image,
) -> heif_error
Expand description

Create a new image of the specified resolution and colorspace.

This does not allocate memory for the image data. Use {@link heif_image_add_plane} to add the corresponding planes to match the specified {@code colorspace} and {@code chroma}.

@param width the width of the image in pixels @param height the height of the image in pixels @param colorspace the colorspace of the image @param chroma the chroma of the image @param out_image pointer to pointer of the resulting image @return whether the creation succeeded or there was an error