作者热门文章
- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
我正在使用 PHP 和 GD 库。
我想在另一张图片上绘制一张图片(比如这张图片:http://www.gravatar.com/avatar/107f2fafb2d29fedc3783b141139a878?s=128&d=identicon&r=PG):http://www.geekpedia.com/gallery/fullsize/simplistic-windows-wallpaper.jpg在指定的坐标(左上角或右上角或图像中的任何位置)。
如何使用 PHP 和 GD 库做到这一点。
最佳答案
<a href="http://br2.php.net/manual/en/function.imagecopy.php" rel="noreferrer noopener nofollow">imagecopy</a>()
或 <a href="http://br2.php.net/manual/en/function.imagecopymerge.php" rel="noreferrer noopener nofollow">imagecopymerge</a>()
.它的文档也提供了示例。
关于PHP:如何在另一个图像上绘制图像?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1405871/
我是一名优秀的程序员,十分优秀!