PHP 7.4.22 Released!

imagegetinterpolation

(PHP 8)

imagegetinterpolationGet the interpolation method

Description

imagegetinterpolation(GdImage $image): int

Gets the currently set interpolation method of the image.

Parameters

image

A GdImage object, returned by one of the image creation functions, such as imagecreatetruecolor().

Return Values

Returns the interpolation method.

Changelog

Version Description
8.0.0 image expects a GdImage instance now; previously, a resource was expected.

See Also

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top