imagecopy 画像の一部をコピーする &reftitle.description; boolimagecopy GdImagedst_image GdImagesrc_image intdst_x intdst_y intsrc_x intsrc_y intsrc_width intsrc_height src_image の一部、つまり、x,y座標 src_x, src_y を基準として幅 src_width、高さ src_height の領域を dst_image にコピーします。指定された領域は、x,y座標 dst_x,dst_yにコピー されます。 &reftitle.parameters; dst_image &gd.image.destination; src_image &gd.image.source; dst_x コピー先の x 座標。 dst_y コピー先の y 座標。 src_x コピー元の x 座標。 src_y コピー元の y 座標。 src_width &gd.source.width; src_height &gd.source.height; &reftitle.returnvalues; &return.success; &reftitle.changelog; &Version; &Description; 8.0.0 dst_imagesrc_image は、 GdImage クラスのインスタンスを期待するようになりました。 これより前のバージョンでは、 resource が期待されていました。 &reftitle.examples; PHP.net のロゴの切り取り ]]> &example.outputs.similar; 出力例 : PHP.net のロゴの切り取り &reftitle.seealso; imagecrop