-
PHP GD库应用——马赛克
- 14:32, 2008-11-02
- 1,732 Views
- 0 Comments
效果: 示例/源码: http://demo.hpyer.cn/php/gd/#mosaic void mosaic(resource image, int x1, int y1, int x2, int y2, int deep); mosaic() 把坐标 x1,y1 到 x2,y2(图像左上角为 0, 0)的矩形区域加上马赛克。deep为模糊程度,数字越大越模糊。
-
PHP GD库应用——描边字
- 14:31, 2008-11-02
- 1,844 Views
- 0 Comments
效果: 示例/源码: http://demo.hpyer.cn/php/gd/#clear_fonts 说明: void clear_fonts(resource image, int size, int x, int y, string color, string fontfile, string text, string outercolor); clear_fonts() 将字符串 text 画到 image 所代表的图像上,从坐标 x,y(左上角为 0, 0)开始,颜色为 color,边框所使用的颜色为 outercolor,使用 fontfile 所指定的 TrueType 字体文件。如果不指定字体文件,则使用GD的内部字体。根据 PHP 所使用的 GD 库的不同,如果 fontfile 没有以“/”开头,则“.ttf”将被加到文件名之后并且会搜索库定义字体路径。 注:如果指定了字体文件,由 x,y 所表示的坐标定义了第一个字符的基本点(大概是字符的左下角)。否则 x,y 定义了第一个字符的右上角。 fontfile 是想要使用的 TrueType 字体的文件名。 text 是文本字符串,支持 UTF-8 字符。 [...]
Page 1 of 11