GamingWarrior Posted October 8, 2007 Share Posted October 8, 2007 Ok, i'm making a dynamic sig for The new quake wars. I have had no problems getting all the information from the xml page but now making the sig part i have hit a wall. Basically i have this so far but i want to add or wat eva maybe tmy current rank at the time to the right hand side of the sig. but cant workout how to print an image. this is my code so far(I have removed the code which i used to get the values as its very messy and not relevant) <?PHP $image = $classusedmost . ".png"; $font = 5; $im = @imagecreatefrompng($image); $image_text = array( 'x' => 148, 'y' => 70, 'color' => array(50, 100, 180), 'font' => 9, 'text' => $Rankno ); $image_text2 = array( 'x' => 250, 'y' => 70, 'color' => array(50, 100, 180), 'font' => 9, 'text' => $Score ); $fgColor = imagecolorallocate($im, 255, 255, 255); header('Content-Type: image/png'); imagestring($im, $font, $image_text['x'], $image_text['y'], $image_text['text'], $fgColor); imagestring($im, $font, $image_text2['x'], $image_text2['y'], $image_text2['text'], $fgColor); imagepng($im); imagedestroy($im); ?> any help would be great -GamingWarrior Quote Link to comment https://forums.phpfreaks.com/topic/72291-solved-dynamic-signature/ Share on other sites More sharing options...
MasterACE14 Posted October 8, 2007 Share Posted October 8, 2007 I'm unfamiliar with the image functions, but on another note, thats Quake Wars enemy Territory right? I've been playing the demo on steam Quote Link to comment https://forums.phpfreaks.com/topic/72291-solved-dynamic-signature/#findComment-364594 Share on other sites More sharing options...
GamingWarrior Posted October 8, 2007 Author Share Posted October 8, 2007 sure is -=-=--=-=-=-=-=-=-=- yea, i don't know much about the function myself what i got there is basically straight from a tutorial Quote Link to comment https://forums.phpfreaks.com/topic/72291-solved-dynamic-signature/#findComment-364639 Share on other sites More sharing options...
GamingWarrior Posted October 9, 2007 Author Share Posted October 9, 2007 ok, i think i may have found the fuction i need to use but have no clue how to you it The function is imageCopyMerge() basically i should be able to use that to join the two images the only problem is al the examples using it are for overlaying two images. but I'll keep looking but if some know how i could do this help is very welcome Quote Link to comment https://forums.phpfreaks.com/topic/72291-solved-dynamic-signature/#findComment-365364 Share on other sites More sharing options...
GamingWarrior Posted October 9, 2007 Author Share Posted October 9, 2007 TA-DA $rankim = 'Ranks/' . $Rank . '.png'; $main = imagecreatefrompng("http://1337gamerz.recoding.net/sig1.png"); $rank = imagecreatefrompng("$rankim"); imagecopymerge($main, $rank, 306, 0, 0, 0, 90, 90, 100); header('Content-type: image/png'); imagepng($main); imagedestroy($main); imagedestroy($rank); Quote Link to comment https://forums.phpfreaks.com/topic/72291-solved-dynamic-signature/#findComment-365438 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.