Method

VipsImagerotate

Declaration [src]

int
vips_rotate (
  VipsImage* in,
  VipsImage** out,
  double angle,
  ...
)

Description [src]

This operator calls vips_affine() for you, calculating the matrix for the affine transform from scale and angle.

Other parameters are passed on to vips_affine() unaltered.

::: tip “Optional arguments” * interpolate: VipsInterpolate, interpolate pixels with this * background: VipsArrayDouble, colour for new pixels * idx: gdouble, input horizontal offset * idy: gdouble, input vertical offset * odx: gdouble, output horizontal offset * ody: gdouble, output vertical offset

::: seealso vips_affine(), VipsInterpolate.

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 double
 

gdouble, rotate by this many degrees clockwise.

... none
 

NULL-terminated list of optional named arguments.

Return value

Returns: int
 

0 on success, -1 on error.