im_line(3)

im_line3

Writes a line on a vasari image

Usage

#include <vips/vips.h>

int im_line(image, x1, y1, x2, y2, pelval)
IMAGE *image;
int x1, x2, y1, y2, pelval;

Overview

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).

Return value

The function returns 0 on success and -1 on error.

Releases

Unchanged in 4 releases since Debian 3.1 (Sarge).

  1. 3.1–6.0

Author

N. Dessipris - 10/05/1991

From libvips-dev 7.20.7-1+b3 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.