Inegbit
[ XITE Reference Manual | XITE home ]
Name
Inegbit - negate a single bit in a byte band
Syntax
#include <xite/biff.h>
Inegbit(band, y, x, b)
IBAND band;
int y, x, b;
Description
Negates bit number <b> from pixel band[y][x].
Defined as a macro:
#define Inegbit(band,y,x,b) (band[y][x] ^= Ibitmask[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 $