Patterned text using php GD library

☆樱花仙子☆ 提交于 2019-11-29 18:12:54

问题


Im trying to create something that looks like this using php gd library:

I've figured out how to create simple text using gd library, but im stuck on how to put a patterned text in it.

Anybody have any idea on how to do this?


回答1:


Yes, this is possible. To do it, you need to uses masks. This website has a nice example: http://www.phpbuilder.com/columns/cash20030526.php3?print_mode=1. Scroll to the bottom of the page, to the "Textures" section for their solution.




回答2:


you could create your text as a image object with Alpha mask then apply that mask on a solid image of your "fill" image

check out alpha blending here



来源:https://stackoverflow.com/questions/4549890/patterned-text-using-php-gd-library

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!