BP_GOPP_Image_Editor_GS::作物(intsrc_x美元,intsrc_y美元,intsrc_w美元,intsrc_h美元,intdst_w美元=零,intdst_h美元=零,保龄球src_abs美元=假)
作物的形象。不受支持的。
描述
参数
- src_x美元
-
(int)(必需)要裁剪的起始x位置。
- src_y美元
-
(int)(必需)从起始位置开始裁切。
- src_w美元
-
(int)(必需)作物的宽度。
- src_h美元
-
(int)(必需)作物的高度。
- dst_w美元
-
(int)(可选)目的地的宽度。
默认值:空
- dst_h美元
-
(int)(可选)目标的高度。
默认值:空
- src_abs美元
-
(保龄球)(可选)如果源作物点是绝对的。
默认值:假
返回
(WP_Error)
源
文件:bp-document /类/ class-bp-gopp-image-editor-gs.php
public function crop($src_x, $src_y, $src_w, $src_h, $dst_w = null, $dst_h = null, $src_abs = false) {return new WP_Error('image_crop_error', __('不支持的操作。', 'buddyboss'));}
更新日志
版本 | 描述 |
---|---|
BuddyBoss 1.4.0 | 介绍了。 |