Logo Search packages:      
Sourcecode: adesklets version File versions

void imlib_image_copy_alpha_to_image ( Imlib_Image  image_source,
int  x,
int  y 
)

Parameters:
image_source An image.
x The x coordinate.
y The y coordinate.
Copies the alpha channel of the source image image_source to the (x, y) coordinates of the current image, replacing the alpha channel there.

Definition at line 4528 of file imlib2.c.

{
   ImlibImage         *im, *im2;

   if (!ctx)
      ctx = imlib_context_new();
   CHECK_PARAM_POINTER("imlib_image_copy_alpha_to_image", "image_source",
                       image_source);
   CHECK_PARAM_POINTER("imlib_image_copy_alpha_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(im, NULL, 0, 1);
   if (!(im->data))
      return;
   if (!(im2->data))
      return;
   __imlib_DirtyImage(im);
   __imlib_copy_alpha_data(im, im2, 0, 0, im->w, im->h, x, y);
}


Generated by  Doxygen 1.6.0   Back to index