Constructor
VipsImagenew_from_memory_copy
Declaration [src]
VipsImage*
vips_image_new_from_memory_copy (
void* data,
size_t size,
int width,
int height,
int bands,
VipsBandFormat format
)
Description [src]
Like vips_image_new_from_memory(), but VIPS will make a copy of the memory
area. This means more memory use and an extra copy operation, but is much
simpler and safer.
See also
Parameters
data-
Type: An array of
guint8Start of memory area.
The length of the array is specified in the sizeargument.The data is owned by the caller of the function. size-
Type:
size_tLength of memory area.
width-
Type:
intImage width.
height-
Type:
intImage height.
bands-
Type:
intImage bands (or bytes per pixel).
format-
Type:
VipsBandFormatImage format.