php在图片上写指定字体的文字

2016-01-22 0 369
php在图片上写指定字体的文字
<?php
header('Content-type: image/gif');

$image = imagecreate( 400, 200 );
$red = imagecolorallocate($image, 255,0,0);
$blue = imagecolorallocate($image, 0,0,255 );
$font = 'ARIALBD.TTF';
imageTTFtext( $image, 50, 0, 20, 100, $blue, $font, 'outofmemory.cn' );
imagegif($image);
?>

遇见资源网 php php在图片上写指定字体的文字 http://www.ox520.com/8154.html

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务