|
Posted by Curtis on 02/01/07 05:41
On Tue, 30 Jan 2007 07:13:03 -0800, Gunnar G <debian@comhem.se> wrote:
> Hi.
>
> I've created an image with this code
>
> Header("Content-Type: image/png");
> $image =3D ImageCreate($W,$H);
> $white =3D ImageColorAllocate($image,255,255,255);
> $black =3D ImageColorAllocate($image,0,0,0);
> ImageLine($image,0,0,$W,$H,$black);
> ImagePng($image);
> ImageDestroy($image);
>
> but now I wish to add a line
>
> echo "Hello";
>
> before the image code, then I only get garbage, the header command is
> probably invalid now. So how do I create the image without having to s=
ave
> the image to a file?
Or just write the text using imagestring() or imagefttext/imagettftext; =
=
this way, it's part of the image, not sure of that's what you want, thou=
gh.
-- =
Curtis, http://dyersweb.com
Navigation:
[Reply to this message]
|