|
Участник форума
Регистрация: 11.05.2008
Сообщений: 202
С нами:
9473484
Репутация:
104
|
|
PHP код:
<?php
$im = imagecreate(400,400);
$col = imagecolorallocate($im,255,255,255);
$col3 = imagecolorallocate($im,0,102,51);
$col2 = imagecolorallocate($im,102,51,0);
$col4 = imagecolorallocate($im,51,102,51);
$col5 = imagecolorallocate($im,255,0,51);
$points = array(90,90,45,-1,0,90);
$points2 = array(90,120,45,5,0,120);
$points3 = array(90,180,45,30,0,180);
$num = count($points);
imagefilledpolygon($im,$points,$num / 2 ,$col3);
imagefilledpolygon($im,$points2,$num / 2 ,$col3);
imagefilledpolygon($im,$points3,$num / 2 ,$col4);
imagefilledrectangle($im,40,180,55,240,$col2);
imagestring($im ,"Arial",20,250,"Happy New Year 2009",$col5 );
header("Content-type: image/png");
imagepng($im);
?>
вопрос без загрузки шрифта не как не сделать размер шрифта др ..
|