Repeating an image in an imagestring

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jeeep
Forum Commoner
Posts: 57
Joined: Fri Apr 28, 2006 1:43 am

Repeating an image in an imagestring

Post by jeeep »

Odd question, I have an imagecreatefrompng that with imagestring list a group of players. I want to have it where an image appears behind each player in the imagestring. I've tried using this:

Code: Select all

$highlight = "images/highlight.png";  
  imagestring($im, $font, 111, $y , $highlight[$i]  , $red);
but obviously this doesnt work. Is there a way inwhich I can display an image with set x and y axis' like so above? Thanks
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Post Reply