Logo Search packages:      
Sourcecode: adesklets version File versions

void imlib_image_fill_rectangle ( int  x,
int  y,
int  width,
int  height 
)

Parameters:
x The top left x coordinate of the rectangle.
y The top left y coordinate of the rectangle.
width The width of the rectangle.
height The height of the rectangle.
Draws a filled rectangle on the current image at the (x, y) coordinates with a size of width and height pixels, using the current color.

Definition at line 4494 of file imlib2.c.

{
   ImlibImage         *im;
   DATA32              color;

   if (!ctx)
      ctx = imlib_context_new();
   CHECK_PARAM_POINTER("imlib_image_fill_rectangle", "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))
      return;
   __imlib_DirtyImage(im);
   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_Rectangle_FillToImage(x, y, width, height, color,
                         im, ctx->cliprect.x, ctx->cliprect.y,
                         ctx->cliprect.w, ctx->cliprect.h,
                         ctx->operation, ctx->blend);
}


Generated by  Doxygen 1.6.0   Back to index