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: vips_image_new_from_memory().
Parameters
data |
An array of guint8 |
Start of memory area. |
|
The length of the array is specified in the size argument. | |
The data is owned by the caller of the function. | |
size |
size_t |
Length of memory area. |
|
width |
int |
Image width. |
|
height |
int |
Image height. |
|
bands |
int |
Image bands (or bytes per pixel) |
|
format |
VipsBandFormat |
Image format. |
Return value
Returns: | VipsImage |
The new |
|
The caller of the function takes ownership of the data, and is responsible for freeing it. |