(PHP 8)
imagegetinterpolation — Get the interpolation method
imagegetinterpolation(GdImage $image): int
Gets the currently set interpolation method of the image.
image
A GdImage object, returned by one of the image creation functions, such as imagecreatetruecolor().
Returns the interpolation method.
| Version | Description |
|---|---|
| 8.0.0 | image expects a GdImage instance now; previously, a valid gd resource was expected. |
© 1997–2025 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/function.imagegetinterpolation.php