Vips.Image.rot (original) (raw)

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.

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.