imagesetinterpolation

(PHP 5 >= 5.5.0)

imagesetinterpolation — Set the interpolation method


Описание

bool imagesetinterpolation ( resource $image [, int $method = IMG_BILINEAR_FIXED ] )

Sets the interpolation method, setting an interpolation method affects the rendering of various functions in GD, such as the imagerotate() function.


Список параметров

image -

Ресурс изображения, полученный одной из функций создания изображений, например, такой как imagecreatetruecolor().

method -

The interpolation method, which can be one of the following:


Возвращаемые значения

Возвращает TRUE в случае успешного завершения или FALSE в случае возникновения ошибки.


Примеры

Пример #1 imagesetinterpolation() example

// Load an image
$im = imagecreate(500, 500);
// By default interpolation is IMG_BICUBIC_FIXED, switch 
// to use the 'Mitchell' filter:
imagesetinterpolation($im, IMG_MITCHELL);
// Continue to work with $im ...


Примечания

Changing the interpolation method affects the following functions when rendering:


add a note add a note

User Contributed Notes


There are no user contributed notes for this page.




Смотрите также:
Описание на ru2.php.net
Описание на php.ru