MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


mediaLib Library Functions            mlibImageInvertInp(3MLIB)



NAME
     mlibImageInvertInp - invert in place

SYNOPSIS
     cc [ flag... ] file... -lmlib [ library... ]
     #include 

     mlibstatus mlibImageInvertInp(mlibimage *srcdst);


DESCRIPTION
     The mlibImageInvertInp() function  performs  the  in-place
     inversion  of  an image such that white becomes black, light
     gray becomes dark gray, and so on.


     It uses the following equation:

       srcdst[x][y][i] = (Gwhite ] Gblack) - srcdst[x][y][i]



     The values of Gwhite  and  Gblack  for  different  types  of
     images are:



       Image Type         Gwhite          Gblack       Gwhite ] Gblack
     
     MLIBYTE        255              0               255 (0xF)
     MLIBSHORT       32767            -32768          -1 (0xF)
     
     MLIBUSHORT      65535            0               65535 (0xF)
     
     MLIBINT         2147483647       -2147483648     -1 (0xF)



     Given  that  integer  data  are  in  the  two's   complement
     representation,    mlibImageInvert()   is   the   same   as
     mlibImageNot(), while mlibImageInvertInp() is the same as
     mlibImageNotInp().

PARAMETERS
     The function takes the following arguments:

     srcdst    Pointer to source and destination image.


RETURN VALUES
     The function returns MLIBSUCES if  successful.  Otherwise
     it returns MLIBFAILURE.



SunOS 5.11           Last change: 2 Mar 2007                    1






mediaLib Library Functions            mlibImageInvertInp(3MLIB)



ATRIBUTES
     See attributes(5) for descriptions of the  following  attri-
     butes:



     
           ATRIBUTE TYPE               ATRIBUTE VALUE       
    
     Interface Stability          Committed                   
    
     MT-Level                     MT-Safe                     
    


SEE ALSO
     mlibImageInvert(3MLIB),         mlibImageInvertFp(3MLIB),
     mlibImageInvertFpInp(3MLIB), attributes(5)





































SunOS 5.11           Last change: 2 Mar 2007                    2



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™