Switch to full style
:read: Start PHP with us. Includes topics to help you in php
Post a reply

chainge Font size of drawing

Sun Oct 26, 2008 10:56 pm

Code:
<?php
$textImage
= imagecreate(200,100);
$white = imagecolorallocate($textImage, 255, 255, 255);
$black = imagecolorallocate($textImage, 0, 0, 0);
$yOffset = 0;
for (
$i = 1; $i <=5; $i++) {
imagestring($textImage, $i, 5, $yOffset, "www.php.com $i", $black);
$yOffset += imagefontheight($i);
}
header("Content-type: image/png");
imagepng($textImage);
imagedestroy($textImage);
?>




Post a reply
  Related Posts  to : chainge Font size of drawing
 Control font size of sub and sup text     -  
 change font size in JavaScript     -  
 Set image size as a percentage of the page size     -  
 CSS used font families     -  
 Outlining the font in java     -  
 Change the td font style     -  
 change the font style of the body tag     -  
 using double font families with body tag     -  
 change Font of text in java     -  
 Configuring the header html font     -  

Topic Tags

PHP Graphics