PHP:如何在另一个图像上绘制图像? [英] PHP: How to draw an image over another image?
本文介绍了PHP:如何在另一个图像上绘制图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用PHP& GD库.
I am using PHP & GD library.
我要绘制图像(说一说: http://www.geekpedia.com/gallery/fullsize/simplistic-windows-wallpaper.jpg 在指定坐标处(顶部-左或右上或图像中的任何位置.
I want to draw an image (say this one: http://www.gravatar.com/avatar/107f2fafb2d29fedc3783b141139a878?s=128&d=identicon&r=PG) over another image: http://www.geekpedia.com/gallery/fullsize/simplistic-windows-wallpaper.jpg at specified coordinates (top-left or top-right or anywhere in the image).
如何使用PHP和GD库做到这一点.
How to do that using PHP and GD library.
推荐答案
imagecopy()
或imagecopymerge()
.它的文档也带来了范例.
imagecopy()
or imagecopymerge()
. It's documentation brings exemples too.
这篇关于PHP:如何在另一个图像上绘制图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文