im_grey(3)

im_grey3

Creates a grey scale

Usage

#include <vips/vips.h>

int im_grey( image, xsize, ysize )
IMAGE *image;
int xsize, ysize;

int im_fgrey( image, xsize, ysize )
IMAGE *image;
int xsize, ysize;

int im_make_xy( image, xsize, ysize )
IMAGE *image;
int xsize, ysize;

Overview

im_grey(3) creates a one-band FMTUCHAR grey scale image of sizes xsize by ysize. The intensity varies from 0 (left) to 255 (right).

im_fgrey(3) works as im_grey(3), except that the output image is FMTFLOAT, allowing pixel values from 0 (left) to 1.0 (right).

im_make_xy(3) makes a two-band FMTUINT image where each pixel in band 0 has a value equal to the x coordinate, and each pixel in band 1 has a value equal to the y coordinate.

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

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