<?php
// get the original image
$MyImage = imagecreatefrompng("woonsen2.png");
// new color
$blue = imagecolorallocate($MyImage, 0, 0, 255); // blue
$red = imagecolorallocate($MyImage, 255, 0, 0); // red
//imagefilledrectangle ($MyImage, 80, 5, 195, 60, $blue);
imagestring($MyImage, 5, 80, 5, "www.pmcom.blogspot.com", $red);
imagepng($MyImage,"modified_image.png");
imagedestroy($MyImage);
print "<img src=woonsen2.png> <br>Modified image<BR> <img src=modified_image.png>";
?>
ไม่มีความคิดเห็น:
แสดงความคิดเห็น