Method

VipsImagedraw_circle

Declaration [src]

int
vips_draw_circle (
  VipsImage* image,
  double* ink,
  int n,
  int cx,
  int cy,
  int radius,
  ...
)

Description [src]

Optional arguments:

  • fill: fill the draw_circle

Draws a circle on image. If fill is TRUE then the circle is filled, otherwise a 1-pixel-wide perimeter is drawn.

ink is an array of double containing values to draw.

See also: vips_draw_circle1(), vips_draw_line().

This method is not directly available to language bindings.

Parameters

ink An array of double
 

Value to draw.

 The length of the array is specified in the n argument.
 The data is owned by the caller of the function.
n int
 

Length of ink array.

cx int
 

Centre of draw_circle.

cy int
 

Centre of draw_circle.

radius int
 

Draw_circle radius.

...
 

NULL-terminated list of optional named arguments.

Return value

Returns: int
 

0 on success, or -1 on error.