[PHP] imagecreatefromstring

2005-08-22 Thread Ross
Hi, i am trying this out of curiosity and get sme errors My gd extension is set up in the correct folder. This is my script header("Content-type: image/png"); $string = 'hello'; $im= imagecreatefrompng("images/button1.png"); $orange = imagecolorallocate($im, 220, 210, 60); $px= (imagesx

RE: [PHP] imagecreatefromstring

2005-08-22 Thread Jay Blanchard
[snip] This is my script header("Content-type: image/png"); $string = 'hello'; $im= imagecreatefrompng("images/button1.png"); $orange = imagecolorallocate($im, 220, 210, 60); $px= (imagesx($im) - 7.5 * strlen($string)) / 2; imagestring($im, 3, $px, 9, $string, $orange); imagepng($im); imag

[PHP] imagecreatefromstring

2002-10-01 Thread Todd Pasley
Hi, I asked a question similar to this earlier, but I thought it may have required simplification/rewording. According to the doco, imagecreatefromstring has the following declaration: resource imagecreatefromstring ( string image) Does anyone know how an image can be transformed into a string