imagecopy
Copy part of an image
&reftitle.description;
boolimagecopy
resourcedst_im
resourcesrc_im
intdst_x
intdst_y
intsrc_x
intsrc_y
intsrc_w
intsrc_h
Copy a part of src_im onto
dst_im starting at the x,y coordinates
src_x, src_y with
a width of src_w and a height of
src_h. The portion defined will be copied
onto the x,y coordinates, dst_x and
dst_y.
&reftitle.parameters;
dst_im
&gd.image.destination;
src_im
&gd.image.source;
dst_x
x-coordinate of destination point.
dst_y
y-coordinate of destination point.
src_x
x-coordinate of source point.
src_y
y-coordinate of source point.
src_w
&gd.source.width;
src_h
&gd.source.height;
&reftitle.returnvalues;
&return.success;
&reftitle.examples;
Cropping the PHP.net logo
]]>
&example.outputs.similar;
Output of example : Cropping the PHP.net logo
&reftitle.seealso;
imagecrop