글자 이미지 생성하기 - imagestring()
<?php
// Create a 100*30 image
$im imagecreate(10030
);

// White background and blue text
$bg imagecolorallocate($im255255255
);
$textcolor imagecolorallocate($im00255
);

// Write the string at the top left
imagestring($im500'Hello world!'$textcolor
);

// Output the image
header('Content-type: image/png'
);

imagepng($im
);
imagedestroy($im
);
?>



출처 : http://www.php.net/manual/en/function.imagestring.php
by 구스몽 | 2009/04/14 10:37 | 덧글(0)


< 이전페이지 다음페이지 >