问题
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