Core Function
View Source on Trac ↗ _crop_image_resource()
_crop_image_resource( mixed $img, mixed $x, mixed $y, mixed $w, mixed $h ) Crops an image resource. Internal use only.
Parameters 5 required
| Name / Type | Description |
|---|---|
| (resource | | GdImage) $img Image resource or GdImage instance. Required |
| $x float | Source point x-coordinate. Required |
| $y float | Source point y-coordinate. Required |
| $w float | Source width. Required |
| $h float | Source height. Required |
Return Value
((resource)
| GdImage) (maybe) cropped image resource or GdImage instance.
Function Information
Since Version
2.9.0
Source File
wp-admin/includes/image-edit.php
Advertisement