Method

VipsImagewrite_to_memory

Declaration [src]

void*
vips_image_write_to_memory (
  VipsImage* in,
  size_t* size
)

Description [src]

Writes in to memory as a simple, unformatted C-style array.

The caller is responsible for freeing this memory with g_free().

::: seealso vips_image_write_to_buffer().

Parameters

size size_t*
 

Return buffer length here.

 The argument will be set by the function.
 The instance takes ownership of the data, and is responsible for freeing it.

Return value

Returns: An array of guint8
 

Return buffer start here.

 The length of the array is in the size argument.
 The caller of the method takes ownership of the data, and is responsible for freeing it.