Method

VipsImagecopy_draw

Declaration [src]

VipsImage*
vips_image_copy_draw (
  VipsImage* image
)

Description [src]

This function allocates memory, renders image into it, builds a new image around the memory area, and returns that.

If the image is already a simple area of memory, it just refs image and returns it.

Call this before using the draw operations to make sure you have a memory image that can be modified.

Return value

Type: VipsImage

The new VipsImage, or NULL on error.

The caller of the method takes ownership of the returned data, and is responsible for freeing it.