MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


mediaLib Library Functions        mlibImageCreateSubimage(3MLIB)



NAME
     mlibImageCreateSubimage - subimage creation

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

     mlibimage *mlibImageCreateSubimage(mlibimage *img, mlibs32 x,
          mlibs32 y, mlibs32 w, mlibs32 h);


DESCRIPTION
     The mlibImageCreateSubimage() function creates  a  mediaLib
     image data structure for a subimage based on a source image.
     Note that the memory space of the source image data is  used
     for  the  subimage  data.  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 source image.


     x      X coordinate of subimage origin in the source.


     y      Y coordinate of subimage origin in the source.


     w      Width of the subimage in pixels.


     h      Height of the subimage 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        mlibImageCreateSubimage(3MLIB)



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


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