Re: Image Text
| From: | Greg Donald | Date: | Tue, 21 Sep 2004 19:28:44 +0000 |
| Subject: | Re: Image Text | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-197466@lists.php.net to get a copy of this message | ||
On Tue, 21 Sep 2004 19:37:45 +0100, b2 <b2@yoursport.org> wrote:
> I'm trying to create images with a bit of text pasted on top
> using the code bolow
> My problem is that the text color either are lost (lighter colors) or print
> in a different color
> it seems that it's mix the text color and the background color
> Is there away around this
> <?
> $im1="backgroundimage.jpg";
> Header("Content-type: image/jpeg");
> $src=@ImageCreateFromJPEG("$im1");
> $red = ImageColorAllocate($src,255,0,0);
> $blue = ImageColorAllocate($src,0,0,255);
Try imagecolorresolve() instead here.
> also
> where can I find different fonts that I can use in
> imageloadfont ()
Depends on your system.
c:\windows\fonts
/usr/share/fonts/truetype
is where I've used fonts from previously.
--
Greg Donald
http://gdconsultants.com/
http://destiney.com/