Logo Search packages:      
Sourcecode: adesklets version File versions

void imlib_image_fill_polygon ( ImlibPolygon  poly  ) 

poly A polygon.
Fills the area defined by the polygon polyon the current context image with the current context color.

Definition at line 5768 of file imlib2.c.

   ImlibImage         *im;
   DATA32              color;

   if (!ctx)
      ctx = imlib_context_new();
   CHECK_PARAM_POINTER("imlib_image_fill_polygon", "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_Polygon_FillToImage((ImlibPoly) poly, 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