Vips.Image.rotate (original) (raw)
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.
Optional arguments
interpolate: VipsInterpolate, interpolate pixels with thisbackground: VipsArrayDouble, colour for new pixelsidx:gdouble, input horizontal offsetidy:gdouble, input vertical offsetodx:gdouble, output horizontal offsetody:gdouble, output vertical offset
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: double
gdouble, rotate by this many degrees clockwise.
...
Type: ``
NULL-terminated list of optional named arguments.
Return value
Type: int
0 on success, -1 on error.