GC_Image_Editor::crop()

最后更新于:2021-11-27 23:34:14

GC_Image_Editor::crop( int$src_x, int$src_y, int$src_w, int$src_h, int$dst_w=null, int$dst_h=null, bool$src_abs=false)

Crops Image.

参数

$src_x

(int) (Required) The start x position to crop from.

$src_y

(int) (Required) The start y position to crop from.

$src_w

(int) (Required) The width to crop.

$src_h

(int) (Required) The height to crop.

$dst_w

(int) (Optional) The destination width.

Default value: null

$dst_h

(int) (Optional) The destination height.

Default value: null

$src_abs

(bool) (Optional) If the source crop points are absolute.

Default value: false

响应

(true|GC_Error)

源文件

文件: gc-includes/class-gc-image-editor.php

	abstract public function crop( $src_x, $src_y, $src_w, $src_h, $dst_w = null, $dst_h = null, $src_abs = false );