PDA

View Full Version : [PHP] imagestring size?



evildrummer
January 9th, 2007, 02:29 PM
I am using PHP to create dynamic images, and I have done it all before but I have lost my old code and cant remember how to change the size of the text, my code is like this:



<?php
header("Content-type: image/png");
$post = "example"
$image = imagecreate(300, 60);
$black = imageColorAllocate($image, 80, 139, 197);
$text = imageColorAllocate($image, 255, 255, 255);
imagestring($image, 1, 5, 5, $post, $text);
imagepng($image);
imagedestroy($image);
?>


any help?

evildrummer
January 9th, 2007, 03:12 PM
Nevermind Fixed it!

bwh2
January 9th, 2007, 03:14 PM
footer contest huh? maybe [d-php]imageloadfont[/d-php]. i'm not sure. i'll check it out later on tonight.

edit: mkay. sounds good.

Esherido
January 9th, 2007, 04:54 PM
I think it's imagetfttext or imagetftext depending on what font type you're using. ;)