Crops Image.
Parameters
$src_xintrequired- The start x position to crop from.
$src_yintrequired- The start y position to crop from.
$src_wintrequired- The width to crop.
$src_hintrequired- The height to crop.
$dst_wintoptional- The destination width.
Default:
null $dst_hintoptional- The destination height.
Default:
null $src_absbooloptional- If the source crop points are absolute.
Default:
false
Source
abstract public function crop( $src_x, $src_y, $src_w, $src_h, $dst_w = null, $dst_h = null, $src_abs = false );
Changelog
| Version | Description |
|---|---|
| 3.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.