blackwhite.c 1.00 (6.347 Bytes)
sets color values below a threshold to 0 (black), color value above
to 255 (white). With rgb-option enabled it operates on each rgb-part instead
of the whole triplet.
Examples from left to right: source image, threshold 64, 128 and 192
Examples: same threshold but with rgb-option enabled