MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


mediaLib Library Functions            mlibGraphicsDrawArc(3MLIB)



NAME
     mlibGraphicsDrawArc,                mlibGraphicsDrawArc8,
     mlibGraphicsDrawArc32,           mlibGraphicsDrawArcX8,
     mlibGraphicsDrawArcX32,         mlibGraphicsDrawArcA8,
     mlibGraphicsDrawArcA32,         mlibGraphicsDrawArcB8,
     mlibGraphicsDrawArcB32,        mlibGraphicsDrawArcAB8,
     mlibGraphicsDrawArcAB32 - draw arc

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

     mlibstatus mlibGraphicsDrawArc8(mlibimage *buffer, mlibs16 x,
          mlibs16 y, mlibs32 r, mlibf32 t1, mlibf32 t2, mlibs32 c);


     mlibstatus mlibGraphicsDrawArc32(mlibimage *buffer, mlibs16 x,
          mlibs16 y, mlibs32 r, mlibf32 t1, mlibf32 t2, mlibs32 c);


     mlibstatus mlibGraphicsDrawArcX8(mlibimage *buffer, mlibs16 x,
          mlibs16 y, mlibs32 r, mlibf32 t1, mlibf32 t2, mlibs32 c,
          mlibs32 c2);


     mlibstatus mlibGraphicsDrawArcX32(mlibimage *buffer, mlibs16 x,
          mlibs16 y, mlibs32 r, mlibf32 t1, mlibf32 t2, mlibs32 c,
          mlibs32 c2);


     mlibstatus mlibGraphicsDrawArcA8(mlibimage *buffer, mlibs16 x,
          mlibs16 y, mlibs32 r, mlibf32 t1, mlibf32 t2, mlibs32 c);


     mlibstatus mlibGraphicsDrawArcA32(mlibimage *buffer, mlibs16 x,
          mlibs16 y, mlibs32 r, mlibf32 t1, mlibf32 t2, mlibs32 c);


     mlibstatus mlibGraphicsDrawArcB8(mlibimage *buffer, mlibs16 x,
          mlibs16 y, mlibs32 r, mlibf32 t1, mlibf32 t2, mlibs32 c,
          mlibs32 a);


     mlibstatus mlibGraphicsDrawArcB32(mlibimage *buffer, mlibs16 x,
          mlibs16 y, mlibs32 r, mlibf32 t1, mlibf32 t2, mlibs32 c,
          mlibs32 a);


     mlibstatus mlibGraphicsDrawArcAB8(mlibimage *buffer, mlibs16 x,
          mlibs16 y, mlibs32 r, mlibf32 t1, mlibf32 t2, mlibs32 c,
          mlibs32 a);




SunOS 5.11           Last change: 2 Mar 2007                    1






mediaLib Library Functions            mlibGraphicsDrawArc(3MLIB)



     mlibstatus mlibGraphicsDrawArcAB32(mlibimage *buffer, mlibs16 x,
          mlibs16 y, mlibs32 r, mlibf32 t1, mlibf32 t2, mlibs32 c,
          mlibs32 a);


DESCRIPTION
     Each of the mlibGraphicsDrawArc*() functions draws an  arc
     with the center at (x, y), radius r, start angle t1, and end
     angle t2.


     Each of the mlibGraphicsDrawArcX*()  functions  draws  an
     arc in Xor mode as follows:

           data[x,y] ^= c ^ c2



     Each of the mlibGraphicsDrawArcA*()  functions  draws  an
     arc with antialiasing.


     Each of the mlibGraphicsDrawArcB*()  functions  draws  an
     arc with alpha blending as follows:

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



     Each of the mlibGraphicsDrawArcAB*() functions  draws  an
     arc 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.


     r         Radius of the arc.


     t1        Start angle of the arc in radians.






SunOS 5.11           Last change: 2 Mar 2007                    2






mediaLib Library Functions            mlibGraphicsDrawArc(3MLIB)



     t2        End angle of the arc in radians.


     c         Color used in the drawing.


     c2        Alternation color.


     a         Alpha value for blending. 0 < a < 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
     mlibGraphicsDrawCircle(3MLIB),
     mlibGraphicsDrawEllipse(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 ™