/* Call im_copy_set via arg vector. */ static int copy_set_vec( im_object *argv ) { int Type = *((int *) argv[2]); float Xres = *((double *) argv[3]); float Yres = *((double *) argv[4]); int Xoffset = *((int *) argv[5]); int Yoffset = *((int *) argv[6]); return( im_copy_set( argv[0], argv[1], Type, Xres, Yres, Xoffset, Yoffset ) ); }
/** * im_copy: * @in: input image * @out: output image * * Copy an image. VIPS copies images by copying pointers, so this operation is * fast, even for very large images. * * See also: im_copy(), im_copy_set(), im_copy_morph(). * * Returns: 0 on success, -1 on error. */ int im_copy( IMAGE *in, IMAGE *out ) { return( im_copy_set( in, out, in->Type, in->Xres, in->Yres, 0, 0 ) ); }