I can create an image using GD with PHP using the imagettftext() function. The colour of the text is specified using imagecolorallocate() but this takes colour in the format RGB.
I have a range of textured images – each 10 x 10 pixels. I would like to use these textured images as the colour for the text rather than a single RBG colour.
I can’t see how to achieve this, is it possible?
If you can, use ImageMagick. It can do this out of the box.
Example from the examples: