Hello Richard,
Monday, May 2, 2005, 4:47:42 PM, you wrote:
RC> But I need to center the text in the image that is generated. As I
RC> am using the same font and it is fixed at 10px I was thinking of
RC> doing something like:
RC> (Get Length of Text in Chars * Width of Average Char) DIV 2.
RC> (
Hello,
I am using the following code.
imagefill($img_number,0,0,$white);
$number = $_GET['text'];
Imagettftext($img_number, 10,0,4,15,$black,'arial.ttf',$number);
header("Content-type: image/jpeg");
$rotate = imagerotate($img_number, 270, 0);
imagejpeg($rotate);
?>
But I need to center the text in
2 matches
Mail list logo