Vips.Image.rot

### Method

# Vips Imagerot

#### 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.

See also

`vips_flip()`, `vips_similarity()`, `vips_rot45()`.

This method is not directly available to language bindings.

#### Parameters

`out`

  Type: `VipsImage`

  Output image.

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

`angle`

  Type: `VipsAngle`

  Rotation angle.

`...`

  Type: ``

  `NULL`-terminated list of optional named arguments.

#### Return value

Type: `int`

0 on success, -1 on error.