MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


mediaLib Library Functions        mlibImageZoomOut2XIndex(3MLIB)



NAME
     mlibImageZoomOut2XIndex - 0.5X zoom

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

     mlibstatus mlibImageZoomOut2XIndex(mlibimage *dst,
          const mlibimage *src, mlibfilter filter, mlibedge edge,
          const void *colormap);


DESCRIPTION
     The mlibImageZoomOut2XIndex() function minifies the  source
     image  by  a factor of two. It uses the interpolation method
     as described by the resampling filter.


     The image data type must be MLIBYTE or MLIBSHORT.


     The center of the upper-left corner pixel  of  an  image  is
     located at (0.5, 0.5).


     The width and height of the destination image  can  be  dif-
     ferent from those of the source image.


     The center of the source image is mapped onto the center  of
     the destination image.

PARAMETERS
     The function takes the following arguments:

     dst         Pointer to destination image.


     src         Pointer to source image.


     filter      Type of resampling filter. It can be one of  the
                 following:

                   MLIBNEAREST
                   MLIBILINEAR
                   MLIBICUBIC
                   MLIBICUBIC2







SunOS 5.11           Last change: 2 Mar 2007                    1






mediaLib Library Functions        mlibImageZoomOut2XIndex(3MLIB)



     edge        Type of edge condition. It can  be  one  of  the
                 following:

                   MLIBEDGEDSTNOWRITE
                   MLIBEDGEDSTFILZERO
                   MLIBEDGEOPNEAREST
                   MLIBEDGESRCEXTEND
                   MLIBEDGESRCPADED



     colormap    Internal data structure for inverse  color  map-
                 ping.  This  data  structure is generated by the
                 mlibImageColorTrue2IndexInit() function.


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

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



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


SEE ALSO
     mlibImageZoom(3MLIB),             mlibImageZoomFp(3MLIB),
     mlibImageZoomIn2X(3MLIB),     mlibImageZoomIn2XFp(3MLIB),
     mlibImageZoomIn2XIndex(3MLIB),  mlibImageZoomIndex(3MLIB),
     mlibImageZoomOut2X(3MLIB),   mlibImageZoomOut2XFp(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 ™