MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


mediaLib Library Functions         mlibGraphicsDrawCircle(3MLIB)



NAME
     mlibGraphicsDrawCircle,          mlibGraphicsDrawCircle8,
     mlibGraphicsDrawCircle32,     mlibGraphicsDrawCircleX8,
     mlibGraphicsDrawCircleX32,   mlibGraphicsDrawCircleA8,
     mlibGraphicsDrawCircleA32,   mlibGraphicsDrawCircleB8,
     mlibGraphicsDrawCircleB32,  mlibGraphicsDrawCircleAB8,
     mlibGraphicsDrawCircleAB32 - draw circle

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

     mlibstatus mlibGraphicsDrawCircle8(mlibimage *buffer, mlibs16 x,
          mlibs16 y, mlibs32 r, mlibs32 c);


     mlibstatus mlibGraphicsDrawCircle32(mlibimage *buffer, mlibs16 x,
          mlibs16 y, mlibs32 r, mlibs32 c);


     mlibstatus mlibGraphicsDrawCircleX8(mlibimage *buffer, mlibs16 x,
          mlibs16 y, mlibs32 r, mlibs32 c, mlibs32 c2);


     mlibstatus mlibGraphicsDrawCircleX32(mlibimage *buffer, mlibs16 x,
          mlibs16 y, mlibs32 r, mlibs32 c, mlibs32 c2);


     mlibstatus mlibGraphicsDrawCircleA8(mlibimage *buffer, mlibs16 x,
          mlibs16 y, mlibs32 r, mlibs32 c);


     mlibstatus mlibGraphicsDrawCircleA32(mlibimage *buffer, mlibs16 x,
          mlibs16 y, mlibs32 r, mlibs32 c);


     mlibstatus mlibGraphicsDrawCircleB8(mlibimage *buffer, mlibs16 x,
          mlibs16 y, mlibs32 r, mlibs32 c, mlibs32 a);


     mlibstatus mlibGraphicsDrawCircleB32(mlibimage *buffer, mlibs16 x,
          mlibs16 y, mlibs32 r, mlibs32 c, mlibs32 a);


     mlibstatus mlibGraphicsDrawCircleAB8(mlibimage *buffer, mlibs16 x,
          mlibs16 y, mlibs32 r, mlibs32 c, mlibs32 a);


     mlibstatus mlibGraphicsDrawCircleAB32(mlibimage *buffer, mlibs16 x,
          mlibs16 y, mlibs32 r, mlibs32 c, mlibs32 a);





SunOS 5.11           Last change: 2 Mar 2007                    1






mediaLib Library Functions         mlibGraphicsDrawCircle(3MLIB)



DESCRIPTION
     Each of the mlibGraphicsDrawCircle*()  functions  draws  a
     circle with the center at (x, y) and radius r.


     Each of the mlibGraphicsDrawCircleX*() functions draws  a
     circle in Xor mode as follows:

           data[x,y] ^= c ^ c2



     Each of the mlibGraphicsDrawCircleA*() functions draws  a
     circle with antialiasing.


     Each of the mlibGraphicsDrawCircleB*() functions draws  a
     circle with alpha blending as follows:

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



     Each of the mlibGraphicsDrawCircleAB*() functions draws a
     circle 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.


     c         Color used in the drawing.


     c2        Alternation color.


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






SunOS 5.11           Last change: 2 Mar 2007                    2






mediaLib Library Functions         mlibGraphicsDrawCircle(3MLIB)



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),
     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 ™