Set the interpolation method in PHP

Description

The following code shows how to set the interpolation method.

Example


<?php/*from   www  .  j  av a2s.  c o m*/
// 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 ...
?>




















Home »
  PHP Tutorial »
    Image »




Color
Create
Font
Operation
Shape
Text