Logo Search packages:      
Sourcecode: adesklets version File versions

void imlib_image_copy_alpha_rectangle_to_image ( Imlib_Image  image_source,
int  x,
int  y,
int  width,
int  height,
int  destination_x,
int  destination_y 
)

Parameters:
image_source An image.
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.
destination_x The top left x coordinate of the destination rectangle.
destination_y The top left x coordinate of the destination rectangle.
Copies the source (x, y, width, height) rectangle alpha channel from the source image image_source and replaces the alpha channel on the destination image at the (destination_x, destination_y) coordinates.

Definition at line 4566 of file imlib2.c.

{
   ImlibImage         *im, *im2;

   if (!ctx)
      ctx = imlib_context_new();
   CHECK_PARAM_POINTER("imlib_image_copy_alpha_rectangle_to_image",
                       "image_source", image_source);
   CHECK_PARAM_POINTER("imlib_image_copy_alpha_rectangle_to_image",
                       "image_destination", ctx->image);
   CAST_IMAGE(im, image_source);
   CAST_IMAGE(im2, ctx->image);
   if ((!(im->data)) && (im->loader) && (im->loader->load))
      im->loader->load(im, NULL, 0, 1);
   if ((!(im2->data)) && (im2->loader) && (im2->loader->load))
      im2->loader->load(im2, NULL, 0, 1);
   if (!(im->data))
      return;
   if (!(im2->data))
      return;
   __imlib_DirtyImage(im);
   __imlib_copy_alpha_data(im, im2, x, y, width, height, destination_x,
                           destination_y);
}


Generated by  Doxygen 1.6.0   Back to index