libvips/man/im_line.3

30 lines
806 B
Groff

.TH IM_LINE 3 "10 May 1991"
.SH NAME
im_line \- writes a line on a vasari image
.SH SYNOPSIS
.B #include <vips/vips.h>
.B int im_line(image, x1, y1, x2, y2, pelval)
.br
.B IMAGE *image;
.br
.B int x1, x2, y1, y2, pelval;
.SH DESCRIPTION
im_line()
draws a line in the image held by image. The start of the line is at point
(x1,y1) and the end is at (x2,y2). The intensity of the drawn line is pelval.
Input image should be one byte unsigned char. The function overwrites any
data in the file, so take care when applying it.
This function is here for compatibility only. You should use im_fastline(3) or
im_fastlineuser(3).
.SH RETURN VALUE
The function returns 0 on success and -1 on error.
.SH SEE ALSO
im_grey(3), im_fastline(3).
.SH COPYRIGHT
.br
N. Dessipris
.SH AUTHOR
N. Dessipris \- 10/05/1991