函数:ImagePSFreeFont()
文章分类:图形处理函数库
ImagePSFreeFont
卸下 PostScript 字型。
语法: void imagepsfreefont(int fontindex);
返回值: 整数
函数种类: 图形处理
|
| |
| 内容说明 |
本函数将已载入 PostScript Type1 字型卸下。参数 fontindex 为载入 PostScript Type1 字型的 handle。
|
| |
| 参考 |
ImagePSLoadFont()
使用本功能需要在编译 PHP 前先安装 GD library,可到 http://www.boutell.com/gd 下载。在 1.6.2 版以前的 GD library 有支持 GIF 格式的功能,但因为 GIF 格式使用的 LZW 演算法牵涉到 Unisys 的专利权,因此在 GD library 1.6.2 版之后不支持 GIF 的格式。然而到了PHP5,GD库又支持创建GIF了。
以下是简单的例子:
<?php
Header("Content-type: image/gif");
$im = imagecreate(400,30);
$black = ImageColorAllocate($im, 0,0,0);
$white = ImageColorAllocate($im, 255,255,255);
imageline($im, 1, 1, 350, 25, $black);
imagearc($im, 200, 15, 20, 20, 35, 190, $white);
imagestring($im, 5, 4, 10, "Graph TEST!!", $white);
ImageGif($im);
ImageDestroy($im);
?>
责任编辑:rongsijing
给文章打分...
0




