Logo Search packages:      
Sourcecode: adesklets version File versions

void imlib_image_draw_ellipse ( int  xc,
int  yc,
int  a,
int  b 

xc X coordinate of the center of the ellipse.
yc Y coordinate of the center of the ellipse.
a The horizontal amplitude of the ellipse.
b The vertical amplitude of the ellipse.
Draws an ellipse on the current context image. The ellipse is defined as (x-xc)^2/a^2 + (y-yc)^2/b^2 = 1. This means that the point (xc, yc) marks the center of the ellipse, a defines the horizontal amplitude of the ellipse, and b defines the vertical amplitude.

Definition at line 5826 of file imlib2.c.

   ImlibImage         *im;
   DATA32             color;

   if (!ctx)
      ctx = imlib_context_new();
   CHECK_PARAM_POINTER("imlib_draw_ellipse", "image", ctx->image);
   CAST_IMAGE(im, ctx->image);
   if ((!(im->data)) && (im->loader) && (im->loader->load))
      im->loader->load(im, NULL, 0, 1);
   if (!(im->data))
   A_VAL(&color) = (DATA8) ctx->color.alpha;
   R_VAL(&color) = (DATA8) ctx->color.red;
   G_VAL(&color) = (DATA8) ctx->color.green;
   B_VAL(&color) = (DATA8) ctx->color.blue;
   __imlib_Ellipse_DrawToImage(xc, yc, a, b, color,
                         im, ctx->cliprect.x, ctx->cliprect.y,
                         ctx->cliprect.w, ctx->cliprect.h,
                         ctx->operation, ctx->blend, ctx->anti_alias);

Generated by  Doxygen 1.6.0   Back to index