GD and Image 函数
PHP Manual

imagecrop

(PHP 5 >= 5.5.0)

imagecropCrop an image using the given coordinates and size, x, y, width and height

说明

resource imagecrop ( resource $image , array $rect )

Warning

本函数还未编写文档,仅有参数列表。

参数

image

由图象创建函数(例如 imagecreatetruecolor())返回的图象资源。

rect

Array with keys "x", "y", "width" and "height".

返回值

Return cropped image resource on success 或者在失败时返回 FALSE.


GD and Image 函数
PHP Manual
Free Web Hosting