ruby-libgd

GD::Image#copy

Copies a region from another image.