


IMVFBFLIP(3IM)         SDSC IMAGE LIBRARY          IMVFBFLIP(3IM)



NAME
     ImVfbFlip - Flip a virtual frame buffer vertically, horizon-
     tally, or both

SYNOPSIS
     #include "im.h"

     ImVfb *ImVfbFlip( srcVfb, flipDirection, dstVfb )
          ImVfb *srcVfb ;
          int flipDirection ;
          ImVfb *dstVfb ;


DESCRIPTION
     ImVfbFlip flips a virtual frame buffer about the  horizontal
     and/or  vertical  axis  and returns a pointer to the flipped
     Vfb.

     _s_r_c_V_f_b is the Vfb to be flipped.

     _f_l_i_p_D_i_r_e_c_t_i_o_n is the direction(s) about which to flip.  Pos-
     sible values for _f_l_i_p_D_i_r_e_c_t_i_o_n are:

             Value          Meaning
8          _____________________________
          IMVFBXFLIP    Flip in X
          IMVFBYFLIP    Flip in Y
          IMVFBXYFLIP   Flip in X and Y

     Note that specifying IMVFBXYFLIP  causes  a  complete  pixel
     transpose.

     _d_s_t_V_f_b is the Vfb to contain the flipped image.   If  _d_s_t_V_f_b
     is  the  constant  IMVFBNEW, a new Vfb is allocated with the
     same size and the same fields as _s_r_c_V_f_b.  A pointer  to  the
     new Vfb is returned.

RETURNS
     Upon success, ImVfbDup returns a pointer to the  destination
     Vfb.  Upon failure, IMVFBNULL is returned and ImErrNo set to
     one of the following:

          IMEMALLOC    Cannot allocate enough memory for the new Vfb
          IMEBADFLIP   _f_l_i_p_D_i_r_e_c_t_i_o_n is not one of the legal values

SEE ALSO
     ImIntro (3IM), ImErrNo (3IM), imflip (3IM), imrotate  (3IM),
     imroll  (3IM),  imshear  (3IM),  imscale  (3IM), ImVfbResize
     (3IM),  ImVfbRoll  (3IM),  ImVfbRotate  (3IM),   ImVfbXShear
     (3IM), ImVfbYShear (3IM)


9


SDSC              Last change: August 25, 1992                  1






IMVFBFLIP(3IM)         SDSC IMAGE LIBRARY          IMVFBFLIP(3IM)



AUTHOR
     Dave Nadeau
     San Diego Supercomputer Center

CONTACT
     SDSC consultants, (619)534-5100, consult@y1.sdsc.edu

















































2                 Last change: August 25, 1992               SDSC



