MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


mediaLib Library Functions             mlibImageSetFormat(3MLIB)



NAME
     mlibImageSetFormat - set format

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

     mlibstatus mlibImageSetFormat(mlibimage *img, mlibformat format);


DESCRIPTION
     The mlibImageSetFormat() function sets a new value for  the
     format field of a mlibimage structure.


     The data type of  the  image  can  be  MLIBIT,  MLIBYTE,
     MLIBSHORT,    MLIBUSHORT,    MLIBINT,    MLIBFLOAT,   or
     MLIBDOUBLE.

PARAMETERS
     The function takes the following arguments:

     img       Pointer to a mediaLib image structure.


     format    Image pixel format. It can be one of  the  follow-
               ing:

                 MLIBFORMATUNKNOWN
                 MLIBFORMATINDEXED
                 MLIBFORMATGRAYSCALE
                 MLIBFORMATRGB
                 MLIBFORMATBGR
                 MLIBFORMATARGB
                 MLIBFORMATABGR
                 MLIBFORMATPACKEDARGB
                 MLIBFORMATPACKEDABGR
                 MLIBFORMATGRAYSCALEALPHA
                 MLIBFORMATRGBA



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

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






SunOS 5.11           Last change: 2 Mar 2007                    1






mediaLib Library Functions             mlibImageSetFormat(3MLIB)



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


SEE ALSO
     mlibImageGetFormat(3MLIB),         mlibImageCreate(3MLIB),
     mlibImageCreateStruct(3MLIB),
     mlibImageCreateSubimage(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 ™