Iclearbit

[ XITE Reference Manual | XITE home ]

Name

Iclearbit - clear a single bit in a byte band

Syntax

 #include <xite/biff.h>

 Iclearbit(band, y, x, b)
 IBAND band;
 int y, x, b;

Description

Clears bit number <b> from pixel band[y][x]. Defined as a macro:
 #define Iclearbit(band,y,x,b) \\
   (band[y][x] &= Inegbitmask[b])

<b> should be between 1 (least signif.) and 8 (most signif.)

Return value

The whole new pixel value.

Author

Tor L|nnestad, BLAB, ifi, UiO

Id

$Id: biffdoc.c,v 1.11 1995/06/06 14:37:13 svein Exp $