imagecopyresized()
imagecopyresized - Copy and resize part of an image
Syntax
bool imagecopyresized (
resource $dst_image,
resource $src_image,
int $dst_x,
int $dst_y,
int $src_x,
int $src_y,
int $dst_w,
int $dst_h,
int $src_w,
int $src_h)
Arguments
- dst_image - Destination image link resource.
- src_image - Source image link resource.
- 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.
- dst_w - Destination width.
- dst_h - Destination height.
- src_w - Source width.
- src_h - Source height.
Description
imagecopyresized() copies a rectangular portion of one image to another image. dst_image is the destination image, src_image is the source image identifier.
Version
PHP 4, 5
Return value
Returns TRUE on success or FALSE on failure.