Core Function
View Source on Trac ↗ _flip_image_resource()
_flip_image_resource( mixed $img, mixed $horz, mixed $vert ) Flips an image resource. Internal use only.
Parameters 3 required
| Name / Type | Description |
|---|---|
| (resource | | GdImage) $img Image resource or GdImage instance. Required |
| $horz bool | Whether to flip horizontally. Required |
| $vert bool | Whether to flip vertically. Required |
Return Value
((resource)
| GdImage) (maybe) flipped image resource or GdImage instance.
Function Information
Since Version
2.9.0
Source File
wp-admin/includes/image-edit.php
Advertisement