Logo Search packages:      
Sourcecode: adesklets version File versions

void imlib_image_fill_hsva_color_range_rectangle ( int  x,
int  y,
int  width,
int  height,
double  angle 
)

Parameters:
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 in HSVA color space 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 4776 of file imlib2.c.

{
   ImlibImage         *im;

   if (!ctx)
      ctx = imlib_context_new();
   CHECK_PARAM_POINTER("imlib_image_fill_color_range_rectangle", "image",
                       ctx->image);
   CHECK_PARAM_POINTER("imlib_image_fill_color_range_rectangle",
                       "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))
      return;
   __imlib_DirtyImage(im);
   __imlib_DrawHsvaGradient(im, x, y, width, height,
                            (ImlibRange *) ctx->color_range, angle,
                            ctx->operation,
                            ctx->cliprect.x, ctx->cliprect.y,
                            ctx->cliprect.w, ctx->cliprect.h);
}


Generated by  Doxygen 1.6.0   Back to index