ZaSz
2009-04-11 17:39:29
I got the first part of the png done with this code. (haven't moved text to spots yet.
[PHP]<?php
header("Content-type: image/png");
$image = imagecreatefrompng("http://www.videogamesigs.com/generate/sigs/backs/mario-light.png");
//imagecolorallocate($image, R, G, B) in HEX values
$font_black = imagecolorallocate($image, 2, 1, 8);
$font_blue = imagecolorallocate($image, 25, 0, 255);
$List = "name.txt";
$string = trim(file_get_contents($List));;
//($image, fontsize, rightindent, downindent, data, txtcolour)
imagestring($image, 3, 12, 3, "T17", $font_blue);
imagestring($image, 1, 86, 6, "SOTW", $font_black);
imagestring($image, 1, 110, 6, $string, $font_black);
imagepng($image);
imagedestroy($image);
[/PHP]
I want my script to send progs to a separate php and add current stuff together to make a stats sig..
right now my image is
(img]http://www.zaszmedia.com/scripts/Stats.png[/image)
help
[PHP]<?php
header("Content-type: image/png");
$image = imagecreatefrompng("http://www.videogamesigs.com/generate/sigs/backs/mario-light.png");
//imagecolorallocate($image, R, G, B) in HEX values
$font_black = imagecolorallocate($image, 2, 1, 8);
$font_blue = imagecolorallocate($image, 25, 0, 255);
$List = "name.txt";
$string = trim(file_get_contents($List));;
//($image, fontsize, rightindent, downindent, data, txtcolour)
imagestring($image, 3, 12, 3, "T17", $font_blue);
imagestring($image, 1, 86, 6, "SOTW", $font_black);
imagestring($image, 1, 110, 6, $string, $font_black);
imagepng($image);
imagedestroy($image);
[/PHP]
I want my script to send progs to a separate php and add current stuff together to make a stats sig..
right now my image is
(img]http://www.zaszmedia.com/scripts/Stats.png[/image)help