image expects a GdImage
instance now; previously, a valid gdresource was expected.
Examples
Example #1 imagesetinterpolation() example
<?php
// Load an image
$im = imagecreate(500, 500);
// By default interpolation is IMG_BILINEAR_FIXED, switch
// to use the 'Mitchell' filter:
imagesetinterpolation($im, IMG_MITCHELL);
// Continue to work with $im ...
?>
Notes
Changing the interpolation method affects the following functions
when rendering: