|
日時: 2007/08/08 21:39
名前: lightbox
|
拡張子:
<?php
$src = "font.png";
list($width, $height) = getimagesize($src);
$image = imagecreatefrompng($src);
$image2 = imagecreatefrompng($src);
$image3 = imagecreatefrompng($src);
$gaussian = array(array(1.0, 2.0, 1.0), array(2.0, 4.0, 2.0), array(1.0, 2.0, 1.0));
for( $i = 0; $i < 4; $i++ ) {
imageconvolution($image2, $gaussian, 16, 0);
}
imagecopymerge($image, $image2, 3,3, 0,0, $width, $height, 100);
imagecopymerge($image, $image3, 0,0, 0,0, $width, $height, 60);
header("Content-type: image/png");
imagepng($image);
imagedestroy($image);
imagedestroy($image2);
imagedestroy($image3);
?>
|