MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


mediaLib Library Functions        mlibGraphicsDrawEllipse(3MLIB)



NAME
     mlibGraphicsDrawEllipse,        mlibGraphicsDrawEllipse8,
     mlibGraphicsDrawEllipse32,   mlibGraphicsDrawEllipseX8,
     mlibGraphicsDrawEllipseX32, mlibGraphicsDrawEllipseA8,
     mlibGraphicsDrawEllipseA32, mlibGraphicsDrawEllipseB8,
     mlibGraphicsDrawEllipseB32,
     mlibGraphicsDrawEllipseAB8,
     mlibGraphicsDrawEllipseAB32 - draw ellipse

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

     mlibstatus mlibGraphicsDrawEllipse8(mlibimage *buffer, mlibs16 x,
          mlibs16 y, mlibs32 a, mlibs32 b, mlibf32 t, mlibs32 c);


     mlibstatus mlibGraphicsDrawEllipse32(mlibimage *buffer, mlibs16 x,
          mlibs16 y, mlibs32 a, mlibs32 b, mlibf32 t, mlibs32 c);


     mlibstatus mlibGraphicsDrawEllipseX8(mlibimage *buffer, mlibs16 x,
          mlibs16 y, mlibs32 a, mlibs32 b, mlibf32 t, mlibs32 c,
          mlibs32 c2);


     mlibstatus mlibGraphicsDrawEllipseX32(mlibimage *buffer, mlibs16 x,
          mlibs16 y, mlibs32 a, mlibs32 b, mlibf32 t, mlibs32 c,
          mlibs32 c2);


     mlibstatus mlibGraphicsDrawEllipseA8(mlibimage *buffer, mlibs16 x,
          mlibs16 y, mlibs32 a, mlibs32 b, mlibf32 t, mlibs32 c);


     mlibstatus mlibGraphicsDrawEllipseA32(mlibimage *buffer, mlibs16 x,
          mlibs16 y, mlibs32 a, mlibs32 b, mlibf32 t, mlibs32 c);


     mlibstatus mlibGraphicsDrawEllipseB8(mlibimage *buffer, mlibs16 x,
          mlibs16 y, mlibs32 a, mlibs32 b, mlibf32 t, mlibs32 c,
          mlibs32 alpha);


     mlibstatus mlibGraphicsDrawEllipseB32(mlibimage *buffer, mlibs16 x,
          mlibs16 y, mlibs32 a, mlibs32 b, mlibf32 t, mlibs32 c,
          mlibs32 alpha);


     mlibstatus mlibGraphicsDrawEllipseAB8(mlibimage *buffer, mlibs16 x,
          mlibs16 y, mlibs32 a, mlibs32 b, mlibf32 t, mlibs32 c,
          mlibs32 alpha);



SunOS 5.11           Last change: 2 Mar 2007                    1






mediaLib Library Functions        mlibGraphicsDrawEllipse(3MLIB)



     mlibstatus mlibGraphicsDrawEllipseAB32(mlibimage *buffer, mlibs16 x,
          mlibs16 y, mlibs32 a, mlibs32 b, mlibf32 t, mlibs32 c,
          mlibs32 alpha);


DESCRIPTION
     Each of the mlibGraphicsDrawEllipse*() functions draws  an
     ellipse  with  the  center  at (x, y), major semiaxis a, and
     minor semiaxis b. The angle of the major semiaxis is t coun-
     terclockwise from the X axis.


     Each of the mlibGraphicsDrawEllipseX*()  functions  draws
     an ellipse in Xor mode as follows:

           data[x,y] ^= c ^ c2



     Each of the mlibGraphicsDrawEllipseA*()  functions  draws
     an ellipse with antialiasing.


     Each of the mlibGraphicsDrawEllipseB*()  functions  draws
     an ellipse with alpha blending as follows:

           data[x,y] = (data[x,y] * (255 - alpha) ] c * alpha) / 255



     Each of the mlibGraphicsDrawEllipseA*()  functions  draws
     an ellipse with antialiasing and alpha blending.

PARAMETERS
     Each of the functions takes some of the following arguments:

     buffer    Pointer to the image into which  the  function  is
               drawing.


     x         X coordinate of the center.


     y         Y coordinate of the center.


     a         Major semiaxis of the ellipse.


     b         Minor semiaxis of the ellipse.





SunOS 5.11           Last change: 2 Mar 2007                    2






mediaLib Library Functions        mlibGraphicsDrawEllipse(3MLIB)



     t         Angle of major semiaxis in radians.


     c         Color used in the drawing.


     c2        Alternation color.


     alpha     Alpha value for blending. 0 < alpha < 255.


RETURN VALUES
     Each of the functions 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
     mlibGraphicsDrawArc(3MLIB), mlibGraphicsDrawCircle(3MLIB),
     attributes(5)





















SunOS 5.11           Last change: 2 Mar 2007                    3



OpenSolaris man pages main menu

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