MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


mediaLib Library Functions            mlibGraphicsFillArc(3MLIB)



NAME
     mlibGraphicsFillArc,                mlibGraphicsFillArc8,
     mlibGraphicsFillArc32,           mlibGraphicsFillArcX8,
     mlibGraphicsFillArcX32,         mlibGraphicsFillArcA8,
     mlibGraphicsFillArcA32,         mlibGraphicsFillArcB8,
     mlibGraphicsFillArcB32,        mlibGraphicsFillArcAB8,
     mlibGraphicsFillArcAB32 - draw filled arc

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

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


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


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


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


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


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


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


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


     mlibstatus mlibGraphicsFillArcAB8(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            mlibGraphicsFillArc(3MLIB)



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


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


     Each of the  mlibGraphicsFillArcX*()  functions  draws  a
     filled arc in Xor mode as follows:

           data[x,y] ^= c ^ c2



     Each of the  mlibGraphicsFillArcA*()  functions  draws  a
     filled arc with antialiasing.


     Each of the  mlibGraphicsFillArcB*()  functions  draws  a
     filled arc with alpha blending as follows:

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



     Each of the mlibGraphicsFillArcAB*()  functions  draws  a
     filled 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            mlibGraphicsFillArc(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
     mlibGraphicsFillCircle(3MLIB),
     mlibGraphicsFillEllipse(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 ™