lvflip(3)

LIBRARY ROUTINE
lvflip - Flip (or reflect) an image

LIBRARY CALL
#include "vinclude.h"
int
lvflip(image,r,t)
struct xvimage *image;
int r,t;

INPUT

image
    pointer to the xvimage structure to be processed

r   if nonzero, then do right-for-left flip (int)

t   if nonzero, then do top-for-bottom flip (int)

OUTPUT

image
    holds the result of the operation. The output data type is the same as the input data type.

Return Value:
    1 on success, 0 on failure.

MODIFICATIONS

DESCRIPTION
lvflip performs reflection or "flip" operations on an image. The flip can be specified to be top-for-bottom or right-for-left or both (which does a 180 degree rotation.

Note that image is used for both the input xvimage structure and the resulting output xvimage structure. This is done to save space, but you must be careful not to overwrite important data.

SEE ALSO
vflip(1), intro(3), vipl(3), verror(3), vutils(3) lvrotate(1), lvwarp(1)

RESTRICTIONS
lvflip does not work on BIT, COMPLEX, or transformed data types. lvflip will work with explicit location data, but only the image part will be flipped. The location data will not be flipped.

AUTHOR
Scott Wilson

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