lvdith45(3)

LIBRARY ROUTINE
lvdith45 - Perform dithering using ordered (matrix) technique, optimized for 45 degrees.

LIBRARY CALL
#include "vinclude.h"
int
lvdith45(image)
struct xvimage *image;

INPUT

image
    xvimage structure containing the character image to be dithered.

OUTPUT

image
    holds the result of the dithered image.

MODIFICATIONS
Marcelo Teran (1/12/88) Converted to new xvstruct.

Mark Young (5/9/88) Changed bitmap padding from 16 to 8 bits.

DESCRIPTION
lvdith45 performs an 8x8 ordered block dither with major axes lying along the 45 degree diagonals. This dither provides lots of grey levels at the expense of spatial resolution, and is relatively easy on the eyes from a distance.
image is a pointer to a Khoros image structure containing the character image to be dithered. image is also used to hold the result of the dithered image. This is done to save space, but you must be careful not to overwrite important data.

lvdith45 returns a value of one upon success and a zero on failure.

SEE ALSO
vdith45(1), intro(3), vipl(3), verror(3), vutils(3)

RESTRICTIONS
lvdith45 operates only on data storage type BYTE images.

AUTHOR
Scott Wilson

COPYRIGHT
Copyright 1991, University of New Mexico. All rights reserved.