MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


mediaLib Library Functions                mlibImageCreate(3MLIB)



NAME
     mlibImageCreate - image creation

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

     mlibimage *mlibImageCreate(mlibtype type, mlibs32 channels,
          mlibs32 width, mlibs32 height);


DESCRIPTION
     The mlibImageCreate() function  creates  a  mediaLib  image
     data  structure  and  allocates memory space for image data.
     The data type of  the  image  can  be  MLIBIT,  MLIBYTE,
     MLIBSHORT,    MLIBUSHORT,    MLIBINT,    MLIBFLOAT,   or
     MLIBDOUBLE.


     To obtain the best performance, it is recommended  that  you
     use this function to create a mediaLib image whenever possi-
     ble, as this guarantees alignment.

PARAMETERS
     The function takes the following arguments:

     type        Image data type.


     channels    Number of channels in the image.


     width       Width of image in pixels.


     height      Height of image in pixels.


RETURN VALUES
     The function returns a pointer to the mlibimage data struc-
     ture.

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










SunOS 5.11           Last change: 2 Mar 2007                    1






mediaLib Library Functions                mlibImageCreate(3MLIB)



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


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