Logo Search packages:      
Sourcecode: adesklets version File versions

void imlib_image_fill_color_range_rectangle ( int  x,
int  y,
int  width,
int  height,
double  angle 

x The x coordinate of the left edge of the rectangle.
y The y coordinate of the top edge of the rectangle.
width The width of the rectangle.
height The height of the rectangle.
angle Angle of gradient.
Fills a rectangle of width width and height height at the (x, y) location specified in the current image with a linear gradient of the current color range at an angle of angle degrees with 0 degrees being vertical from top to bottom going clockwise from there.

Definition at line 4737 of file imlib2.c.

   ImlibImage         *im;

   if (!ctx)
      ctx = imlib_context_new();
   CHECK_PARAM_POINTER("imlib_image_fill_color_range_rectangle", "image",
                       "color_range", ctx->color_range);
   CAST_IMAGE(im, ctx->image);
   if ((!(im->data)) && (im->loader) && (im->loader->load))
      im->loader->load(im, NULL, 0, 1);
   if (!(im->data))
   __imlib_DrawGradient(im, x, y, width, height,
                        (ImlibRange *) ctx->color_range, angle,
                        ctx->cliprect.x, ctx->cliprect.y,
                        ctx->cliprect.w, ctx->cliprect.h);

Generated by  Doxygen 1.6.0   Back to index