andrewgjohnson / imagettftextblur
imagettftextblur 是 imagettftext 的直接替代品,增加了模糊、发光和阴影效果参数,可以应用于您的 PHP GD 图像
Requires
- php: >=5.0.0
- ext-gd: *
README
描述
imagettftextblur 是 imagettftext 的直接替代品,增加了模糊、发光和阴影效果参数,可以应用于您的 PHP GD 图像。
imagettftextblur 是一个 agjgd 项目。
使用方法
使用 Composer
本项目支持 Composer 依赖管理器。您可以在 packagist.org 上找到 imagettftextblur 包。
使用 Composer 安装
运行以下命令之一
composer require andrewgjohnson/imagettftextblur
或者将以下内容添加到您的 composer.json 文件的 require
部分
"andrewgjohnson/imagettftextblur": "1.*"
不使用 Composer
要使用而不使用 Composer,请将 include 添加到 imagettftextblur.php
源文件。
include_once 'source/imagettftextblur.php';
示例
// standard method to add text to a GD image
imagettftext($im, 20, 0, 0, 0, $color, $font, $string);
// this will work the exact same as the line above
imagettftextblur($im, 20, 0, 0, 0, $color, $font, $string);
// method to add blurred text to a GD image
imagettftextblur($im, 20, 0, 0, 0, $color, $font, $string, 1);
GitHub 仓库和 imagettftextblur.agjgd.org 上包含其他示例。
帮助请求
如果您需要帮助,请在 GitHub 的 讨论区域 发帖。
如果您发现一个错误,请在 GitHub 上 提交问题。提交问题时,请使用我们的 问题模板。
贡献
如果您想贡献,请阅读我们的 贡献指南。
您可以通过成为 patreon.com/agjopensource 上的 赞助者 来经济上支持 imagettftextblur 和 其他 agjgd.org 项目。
致谢
本项目由 Andrew G. Johnson (@andrewgjohnson) 创始。
完整的贡献者列表
我们的安全政策和流程来自atomist/samples项目。我们的问题模板来自tensorflow/tensorflow项目。我们的拉取请求模板来自stevemao/github-issue-templates项目。山景照片来自Gabriel Garcia Marengo。
变更日志
您可以在变更日志中找到所有重要的更改。