andrewgjohnson / imagettftextgradient
imagettftextgradient 是 imagettftext 的替代品,它增加了一个参数,可以将渐变着色效果添加到 PHP GD 图像中
Requires
- php: >=5.0.0
- ext-gd: *
README
描述
imagettftextgradient 是 imagettftext 的替代品,它增加了一个参数,可以将渐变着色效果添加到 PHP GD 图像中。
imagettftextgradient 是一个 agjgd 项目。
用法
使用 Composer
本项目支持 Composer 依赖管理器。您可以在 packagist.org 上找到 imagettftextgradient 包。
使用 Composer 安装
运行此命令
composer require andrewgjohnson/imagettftextgradient
或将其添加到 composer.json 文件的 require
部分
"andrewgjohnson/imagettftextgradient": "1.*"
不使用 Composer
要使用而不使用 Composer,请将 include 添加到 imagettftextgradient.php
源文件。
include_once 'source/imagettftextgradient.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
imagettftextgradient($im, 20, 0, 0, 0, $color, $font, $string);
// method to add text with gradient coloring effects to a GD image
imagettftextgradient($im, 20, 0, 0, 0, $color, $font, $string, $gradient_color);
GitHub 存储库和 imagettftextgradient.agjgd.org 上包含其他示例。
求助请求
如果您需要帮助,请在 GitHub 上的 讨论区域 发布任何问题。
如果您发现了一个错误,请 在 GitHub 上创建一个问题。提交问题时,请使用我们的 问题模板。
贡献
如果您想贡献,请阅读我们的 贡献指南。
您可以通过成为 Patreon 上的 patreon.com/agjopensource 赞助者来财务上支持 imagettftextgradient 和 其他 agjgd.org 项目。
致谢
本项目由 Andrew G. Johnson (@andrewgjohnson) 创始。
所有贡献者列表
我们的安全政策和流程来自atomist/samples项目。我们的问题模板来自tensorflow/tensorflow项目。我们的拉取请求模板来自stevemao/github-issue-templates项目。山景照片来自Gabriel Garcia Marengo。
变更日志
您可以在变更日志中找到所有重要的更改。