Method

VipsImagerot

Declaration [src]

int
vips_rot (
  VipsImage* in,
  VipsImage** out,
  VipsAngle angle,
  ...
)

Description [src]

Rotate in by a multiple of 90 degrees.

Use vips_similarity() to rotate by an arbitrary angle. vips_rot45() is useful for rotating convolution masks by 45 degrees.

::: seealso vips_flip(), vips_similarity(), vips_rot45().

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.
angle VipsAngle
 

Rotation angle.

... none
 

NULL-terminated list of optional named arguments.

Return value

Returns: int
 

0 on success, -1 on error.