array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'function.imagegetinterpolation.php', 1 => 'imagegetinterpolation', 2 => 'Get the interpolation method', ), 'up' => array ( 0 => 'ref.image.php', 1 => 'GD 和图像处理 函数', ), '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

说明

imagegetinterpolation(GdImage $image): int

Gets the currently set interpolation method of the image.

参数

image

由图象创建函数(例如imagecreatetruecolor())返回的 GdImage 对象。

返回值

Returns the interpolation method.

更新日志

版本 说明
8.0.0 image 现在需要 GdImage 实例;之前需要有效的 gd resource

参见