dither

[ XITE Reference Manual | XITE home ]

Name

dither - create a dithering band

Syntax

 #include <xite/dither.h>

 int dither( IBAND b1, IBAND b2, int t );

Description

dither dithers b1 into b2. Only largest common rectangle is ditherd. Accepts only UNS_BYTE pixles. t is used as a threshold-like argument. Identical in- and out- parameters are legal.

Return value

 0 => ok
 1 => Bad input pixel type
 2 => Bad output pixel type
 3 => Bad threshold value

Author

Tor L|nnestad, BLAB, IfI, UiO

Id

$Id: dither.c,v 1.19 1996/11/08 14:03:15 svein Exp $