array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'en', ), 'this' => array ( 0 => 'function.imagegetinterpolation.php', 1 => 'imagegetinterpolation', 2 => 'Get the interpolation method', ), 'up' => array ( 0 => 'ref.image.php', 1 => 'GD and Image Functions', ), 'prev' => array ( 0 => 'function.imagegetclip.php', 1 => 'imagegetclip', ), 'next' => array ( 0 => 'function.imagegif.php', 1 => 'imagegif', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/image/functions/imagegetinterpolation.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

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 valid gd resource was expected.

See Also