# File lib/gd2/image.rb, line 548 def copy_from(other, dst_x, dst_y, src_x, src_y, dst_w, dst_h, src_w = nil, src_h = nil) raise ArgumentError unless src_w.nil? == src_h.nil? if src_w SYM[:gdImageCopyResampled].call(image_ptr, other.image_ptr, dst_x, dst_y, src_x, src_y, dst_w, dst_h, src_w, src_h) else SYM[:gdImageCopy].call(image_ptr, other.image_ptr, dst_x, dst_y, src_x, src_y, dst_w, dst_h) end self end