close
<?php
// 加載 gd2 圖像
$im = imagecreatefromgd2('./test.gd2');
// 在圖像上應用效果。
// 在這個例子中,如果版本為 PHP5+ 則反轉圖像顏色
if(function_exists('imagefilter'))
{
imagefilter($im, IMG_FILTER_NEGATE);
}
// 保存圖像
imagegd2($im, './test_updated.gd2');
imagedestroy($im);
?>
全站熱搜