Logo Search packages:      
Sourcecode: adesklets version File versions

void imlib_image_copy_rect ( int  x,
int  y,
int  width,
int  height,
int  new_x,
int  new_y 
)

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.
new_x The top left x coordinate of the new location.
new_y The top left y coordinate of the new location.
Copies a rectangle of size width, height at the (x, y) location specified in the current image to a new location (new_x, new_y) in the same image.

Definition at line 4661 of file imlib2.c.

{
   ImlibImage         *im;

   if (!ctx)
      ctx = imlib_context_new();
   CHECK_PARAM_POINTER("imlib_image_copy_rect", "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);
   __imlib_copy_image_data(im, x, y, width, height, new_x, new_y);
}


Generated by  Doxygen 1.6.0   Back to index