Name
copy( ) — copy a region from one image to another
Synopsis
GD::Image::copy(srcImage, destX, destY, srcX, srcY, width, height
)
The copy( )
method
will copy all pixels with the width×
height region starting at the coordinate
srcX, srcY of the image
srcImage to a similarly sized region of the
destination image at destX, destY. The source
and destination images may be the same, if you wish to copy from one
part of an image to another part of the same image, but the source
and destination regions should not overlap.
Get Programming Web Graphics with Perl and GNU Softwar now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.