Method

VipsRectdup

Declaration [src]

VipsRect*
vips_rect_dup (
  const VipsRect* r
)

Description [src]

Duplicate a rect to the heap. You need to free the result with g_free().

Return value

Returns: VipsRect
 

A pointer to copy of r allocated on the heap.

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