Method

VipsImagewrap

Declaration [src]

int
vips_wrap (
  VipsImage* in,
  VipsImage** out,
  ...
)

Description [src]

Slice an image up and move the segments about so that the pixel that was at 0, 0 is now at x, y.

If x and y are not set, they default to the centre of the image.

::: tip “Optional arguments” * x: gint, horizontal displacement * y: gint, vertical displacement

::: seealso vips_embed(), vips_replicate().

Parameters

out VipsImage
 

Output image.

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

NULL-terminated list of optional named arguments.

Return value

Returns: int
 

0 on success, -1 on error.