1IM_CIRCLE(3) Library Functions Manual IM_CIRCLE(3)
2
3
4
6 im_circle - draws a circle within an image file
7
9 #include <vips/vips.h>
10
11 int im_circle(im, cx, cy, radius, intensity)
12 IMAGE *im;
13 int cx, cy;
14 int radius, intensity;
15
17 im_circle() draws a circle on top of an image pointed by the image
18 descriptor im. Input im should be one band unsigned char image.
19
20 It must be stressed that a call to this function overwrites the content
21 of the original image at the points corresponding to the drawn circle.
22 The centre of the circle is at point (cx, cy) and has radius radius and
23 the intensity of the produced circle is given by the int intensity
24 (between 0 and 255). If the circle does not fit in the original image,
25 an error code is returned.
26
28 The function returns 0 on success and -1 on error.
29
31 im_line(3).
32
34 N. Dessipris
35
37 N. Dessipris - 10/05/1991
38
39
40
41 10 May 1991 IM_CIRCLE(3)