1IM_LINE(3) Library Functions Manual IM_LINE(3)
2
3
4
6 im_line - writes a line on a vasari image
7
9 #include <vips/vips.h>
10
11 int im_line(image, x1, y1, x2, y2, pelval)
12 IMAGE *image;
13 int x1, x2, y1, y2, pelval;
14
16 im_line() draws a line in the image held by image. The start of the
17 line is at point (x1,y1) and the end is at (x2,y2). The intensity of
18 the drawn line is pelval. Input image should be one byte unsigned
19 char. The function overwrites any data in the file, so take care when
20 applying it.
21
22 This function is here for compatibility only. You should use im_fast‐
23 line(3) or im_fastlineuser(3).
24
26 The function returns 0 on success and -1 on error.
27
29 im_grey(3), im_fastline(3).
30
32 N. Dessipris
33
35 N. Dessipris - 10/05/1991
36
37
38
39 10 May 1991 IM_LINE(3)