View Single Post
  #179  
Unread 04-13-2005, 01:32 AM
predawnia's Avatar
predawnia predawnia is offline
A Young Mystail Rat
 
Join Date: Dec 2004
Server: Lucan DLere
Posts: 2
Thumbs Up

With reference to Octavius's themed sig gen, to make a sig with transparent background you use the following code in your theme.php file.

Code:
$image_get = "themes/theme1/sig.png";
$image_src = imagecreatefrompng($image_get);
$transcolor = imagecolorresolve($image_src, 239, 239, 239); //sets transparent color to 239,239,239
$image_out = imagecreatetruecolor(400, 200);
imagepalettecopy($image_out, $image_src); //copies source palette to new output image
imagefill($image_out,0,0,$transcolor); //fills the output image with transparent color
imagecolortransparent($image_out, $transcolor); //set output image color to transparent
imagecopyresized($image_out, $image_src, 0, 0, 0, 0, 400, 200, 400, 200); // copies source image over output image
imagedestroy($image_src); 
$color = imagecolorallocate($image_out,220,220,255);
imagestring($image_out, 3, 30, 70, $player['name'].$surname, $color);
.
.
.
Here is a sample of a transparent background sig.
http://av.mmog-tng.com/sig/image.php...nye&img=ornate
Hope this helps whoever trying to make cool themes

Last edited by predawnia : 04-13-2005 at 04:11 AM.
Reply With Quote